/* Copyright (c) 2009 Yahoo! Inc. All rights reserved. The copyrights embodied in the content of this file are licensed under the BSD (revised) open source license */ package com.yahoo.astra.fl.events { import flash.events.Event; /** * The MediaEvent class defines events for the IMediaClip components. * * These events include the following: *
MediaEvent.MEDIA_POSITION
: dispatched when the MediaComponent's _playing property is true.MediaEvent.MEDIA_PLAY_PAUSE
: dispatched when the _playing state of the MediaComponent changesMediaEvent.VOLUME_CHANGE
: dispatched when the volume changes on the MediaComponent.MediaEvent.INFO_CHANGE
: dispatched when the info for the media has changedMediaEvent.MEDIA_LOADED
: dispatched when media source has loadedMediaEvent.MEDIA_ENDED
: dispatched when a media completes playbacktype
property of an mediaPosition
* event object.
*
* This event has the following properties:
*Property | Value |
---|---|
bubbles | false |
cancelable | true |
currentTarget | The object that is actively processing * the event object with an event listener. |
position | The position of the playhead for the media * clip |
duration | The length of the media clip |
volume | The volume of the media clip |
mute | The volume of the media clip |
target | The object that dispatched the event. The target is
* not always the object listening for the event. Use the currentTarget
* property to access the object that is listening for the event. |
type
property of an mediaPlayPause
* event object.
*
* This event has the following properties:
*Property | Value |
---|---|
bubbles | false |
cancelable | true |
currentTarget | The object that is actively processing * the event object with an event listener. |
position | The position of the playhead for the media * clip |
duration | The length of the media clip |
volume | The volume of the media clip |
mute | The volume of the media clip |
target | The object that dispatched the event. The target is
* not always the object listening for the event. Use the currentTarget
* property to access the object that is listening for the event. |
type
property of an volumeChange
* event object.
*
* This event has the following properties:
*Property | Value |
---|---|
bubbles | false |
cancelable | true |
currentTarget | The object that is actively processing * the event object with an event listener. |
position | The position of the playhead for the media * clip |
duration | The length of the media clip |
volume | The volume of the media clip |
mute | The volume of the media clip |
target | The object that dispatched the event. The target is
* not always the object listening for the event. Use the currentTarget
* property to access the object that is listening for the event. |
type
property of an infoChange
* event object.
*
* This event has the following properties:
*Property | Value |
---|---|
bubbles | false |
cancelable | true |
currentTarget | The object that is actively processing * the event object with an event listener. |
position | The position of the playhead for the media * clip |
duration | The length of the media clip |
volume | The volume of the media clip |
mute | The volume of the media clip |
target | The object that dispatched the event. The target is
* not always the object listening for the event. Use the currentTarget
* property to access the object that is listening for the event. |
type
property of an mediaLoaded
* event object.
*
* This event has the following properties:
*Property | Value |
---|---|
bubbles | false |
cancelable | true |
currentTarget | The object that is actively processing * the event object with an event listener. |
position | The position of the playhead for the media * clip |
duration | The length of the media clip |
volume | The volume of the media clip |
mute | The volume of the media clip |
target | The object that dispatched the event. The target is
* not always the object listening for the event. Use the currentTarget
* property to access the object that is listening for the event. |
type
property of an mediaEnded
* event object.
*
* This event has the following properties:
*Property | Value |
---|---|
bubbles | false |
cancelable | true |
currentTarget | The object that is actively processing * the event object with an event listener. |
position | The position of the playhead for the media * clip |
duration | The length of the media clip |
volume | The volume of the media clip |
mute | The volume of the media clip |
target | The object that dispatched the event. The target is
* not always the object listening for the event. Use the currentTarget
* property to access the object that is listening for the event. |