Packagecom.adobe.mediacore.events
Classpublic final class MediaPlayerStatusChangeEvent
InheritanceMediaPlayerStatusChangeEvent Inheritance flash.events.Event

Event dispatched by the media player when its status changes.



Public Properties
 PropertyDefined By
  error : MediaError
[read-only] The error which occurred and changed the status to ERROR.
MediaPlayerStatusChangeEvent
  status : String
[read-only] The status of the player.
MediaPlayerStatusChangeEvent
Public Methods
 MethodDefined By
  
MediaPlayerStatusChangeEvent(type:String, bubbles:Boolean = false, cancelable:Boolean = false, status:String = null, error:MediaError = null)
Default constructor.
MediaPlayerStatusChangeEvent
  
clone():Event
[override]
MediaPlayerStatusChangeEvent
  
[static] Factory method for this event.
MediaPlayerStatusChangeEvent
Public Constants
 ConstantDefined By
  STATUS_CHANGED : String = statusChanged
[static] Event dispatched when the media player change its status.
MediaPlayerStatusChangeEvent
Property Detail
errorproperty
error:MediaError  [read-only]

The error which occurred and changed the status to ERROR.


Implementation
    public function get error():MediaError
statusproperty 
status:String  [read-only]

The status of the player.


Implementation
    public function get status():String
Constructor Detail
MediaPlayerStatusChangeEvent()Constructor
public function MediaPlayerStatusChangeEvent(type:String, bubbles:Boolean = false, cancelable:Boolean = false, status:String = null, error:MediaError = null)

Default constructor.

Parameters
type:String — Event type.
 
bubbles:Boolean (default = false) — Specifies whether the event can bubble up the display list hierarchy.
 
cancelable:Boolean (default = false) — Specifies whether the behavior associated with the event can be prevented.
 
status:String (default = null) — The new status of the player.
 
error:MediaError (default = null) — The error which trigger the player to transition into an ERROR status.
Method Detail
clone()method
override public function clone():Event

Returns
Event
create()method 
public static function create(status:String, error:MediaError):MediaPlayerStatusChangeEvent

Factory method for this event.

Parameters

status:String — The new status of the player
 
error:MediaError — The error which trigger the player to transition into an ERROR status.

Returns
MediaPlayerStatusChangeEvent
Constant Detail
STATUS_CHANGEDConstant
public static const STATUS_CHANGED:String = statusChanged

Event dispatched when the media player change its status. The current status is exposed through status property. When the player goes into ERROR status the client can use error property of this event to access the error which caused it.

See also