ActionScript® 3.0 Reference for the Adobe® Flash® Platform
Home  |  Show Packages and Classes List |  Packages  |  Classes  |  What's New  |  Index  |  Appendixes
org.osmf.events 

MediaPlayerCapabilityChangeEvent  - AS3 OSMF

Packageorg.osmf.events
Classpublic class MediaPlayerCapabilityChangeEvent
InheritanceMediaPlayerCapabilityChangeEvent Inheritance Event Inheritance Object

Language Version: ActionScript 3.0
Product Version: OSMF 1.0
Runtime Versions: Flash Player 10, AIR 1.5

A MediaPlayer dispatches a MediaPlayerCapabilityChangeEvent when its capabilities change.



Public Properties
 PropertyDefined By
 Inheritedbubbles : Boolean
[read-only] Indicates whether an event is a bubbling event.
Event
 Inheritedcancelable : Boolean
[read-only] Indicates whether the behavior associated with the event can be prevented.
Event
 Inheritedconstructor : Object
A reference to the class object or constructor function for a given object instance.
Object
 InheritedcurrentTarget : Object
[read-only] The object that is actively processing the Event object with an event listener.
Event
  enabled : Boolean
[read-only] Indicates whether the MediaPlayer has the capability described by the event.
MediaPlayerCapabilityChangeEvent
 InheritedeventPhase : uint
[read-only] The current phase in the event flow.
Event
 Inheritedtarget : Object
[read-only] The event target.
Event
 Inheritedtype : String
[read-only] The type of event.
Event
Public Methods
 MethodDefined By
  
MediaPlayerCapabilityChangeEvent(type:String, bubbles:Boolean = false, cancelable:Boolean = false, enabled:Boolean = false)
Constructor.
MediaPlayerCapabilityChangeEvent
 Inherited
Duplicates an instance of an Event subclass.
Event
 Inherited
formatToString(className:String, ... arguments):String
A utility function for implementing the toString() method in custom ActionScript 3.0 Event classes.
Event
 Inherited
Indicates whether an object has a specified property defined.
Object
 Inherited
Checks whether the preventDefault() method has been called on the event.
Event
 Inherited
Indicates whether an instance of the Object class is in the prototype chain of the object specified as the parameter.
Object
 Inherited
Cancels an event's default behavior if that behavior can be canceled.
Event
 Inherited
Indicates whether the specified property exists and is enumerable.
Object
 Inherited
Sets the availability of a dynamic property for loop operations.
Object
 Inherited
Prevents processing of any event listeners in the current node and any subsequent nodes in the event flow.
Event
 Inherited
Prevents processing of any event listeners in nodes subsequent to the current node in the event flow.
Event
 Inherited
Returns the string representation of this object, formatted according to locale-specific conventions.
Object
 Inherited
Returns a string containing all the properties of the Event object.
Event
 Inherited
Returns the primitive value of the specified object.
Object
Public Constants
 ConstantDefined By
  CAN_BUFFER_CHANGE : String = "canBufferChange"
[static] The MediaPlayerCapabilityChangeEvent.CAN_BUFFER_CHANGE constant defines the value of the type property of the event object for a canBufferChange event.
MediaPlayerCapabilityChangeEvent
  CAN_LOAD_CHANGE : String = "canLoadChange"
[static] The MediaPlayerCapabilityChangeEvent.CAN_LOAD_CHANGE constant defines the value of the type property of the event object for a canLoadChange event.
MediaPlayerCapabilityChangeEvent
  CAN_PLAY_CHANGE : String = "canPlayChange"
[static] The MediaPlayerCapabilityChangeEvent.CAN_PLAY_CHANGE constant defines the value of the type property of the event object for a canPlayChange event.
MediaPlayerCapabilityChangeEvent
  CAN_SEEK_CHANGE : String = "canSeekChange"
[static] The MediaPlayerCapabilityChangeEvent.CAN_SEEK_CHANGE constant defines the value of the type property of the event object for a canSeekChange event.
MediaPlayerCapabilityChangeEvent
  HAS_ALTERNATIVE_AUDIO_CHANGE : String = "hasAlternativeAudioChange"
[static] This event is dispatched by MediaPlayer when its hasAlternativeAudio property has changed.
MediaPlayerCapabilityChangeEvent
  HAS_AUDIO_CHANGE : String = "hasAudioChange"
[static] The MediaPlayerCapabilityChangeEvent.HAS_AUDIO_CHANGE constant defines the value of the type property of the event object for a hasAudioChange event.
MediaPlayerCapabilityChangeEvent
  HAS_DISPLAY_OBJECT_CHANGE : String = "hasDisplayObjectChange"
[static] The MediaPlayerCapabilityChangeEvent.HAS_DISPLAY_OBJECT_CHANGE constant defines the value of the type property of the event object for a hasDisplayObjectChange event.
MediaPlayerCapabilityChangeEvent
  HAS_DRM_CHANGE : String = "hasDRMChange"
[static] The MediaPlayerCapabilityChangeEvent.HAS_DRM_CHANGE constant defines the value of the type property of the event object for a hasDRMChange event.
MediaPlayerCapabilityChangeEvent
  IS_DYNAMIC_STREAM_CHANGE : String = "isDynamicStreamChange"
[static] The MediaPlayerCapabilityChangeEvent.IS_DYNAMIC_STREAM_CHANGE constant defines the value of the type property of the event object for a isDynamicStreamChange event.
MediaPlayerCapabilityChangeEvent
  TEMPORAL_CHANGE : String = "temporalChange"
[static] The MediaPlayerCapabilityChangeEvent.TEMPORAL_CHANGE constant defines the value of the type property of the event object for a temporalChange event.
MediaPlayerCapabilityChangeEvent
Property Detail

enabled

property
enabled:Boolean  [read-only]

Language Version: ActionScript 3.0
Product Version: OSMF 1.0
Runtime Versions: Flash Player 10, AIR 1.5

Indicates whether the MediaPlayer has the capability described by the event.



Implementation
    public function get enabled():Boolean
Constructor Detail

MediaPlayerCapabilityChangeEvent

()Constructor
public function MediaPlayerCapabilityChangeEvent(type:String, bubbles:Boolean = false, cancelable:Boolean = false, enabled:Boolean = false)

Language Version: ActionScript 3.0
Product Version: OSMF 1.0
Runtime Versions: Flash Player 10, AIR 1.5

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.
 
enabled:Boolean (default = false) — Indicates whether the MediaPlayer has a particular capability as a result of the change described in the type parameter. Value of true means the player has the capability as a result of the change, false means it does not.
Constant Detail

CAN_BUFFER_CHANGE

Constant
public static const CAN_BUFFER_CHANGE:String = "canBufferChange"

Language Version: ActionScript 3.0
Product Version: OSMF 1.0
Runtime Versions: Flash Player 10, AIR 1.5

The MediaPlayerCapabilityChangeEvent.CAN_BUFFER_CHANGE constant defines the value of the type property of the event object for a canBufferChange event.

CAN_LOAD_CHANGE

Constant 
public static const CAN_LOAD_CHANGE:String = "canLoadChange"

Language Version: ActionScript 3.0
Product Version: OSMF 1.0
Runtime Versions: Flash Player 10, AIR 1.5

The MediaPlayerCapabilityChangeEvent.CAN_LOAD_CHANGE constant defines the value of the type property of the event object for a canLoadChange event.

CAN_PLAY_CHANGE

Constant 
public static const CAN_PLAY_CHANGE:String = "canPlayChange"

Language Version: ActionScript 3.0
Product Version: OSMF 1.0
Runtime Versions: Flash Player 10, AIR 1.5

The MediaPlayerCapabilityChangeEvent.CAN_PLAY_CHANGE constant defines the value of the type property of the event object for a canPlayChange event.

CAN_SEEK_CHANGE

Constant 
public static const CAN_SEEK_CHANGE:String = "canSeekChange"

Language Version: ActionScript 3.0
Product Version: OSMF 1.0
Runtime Versions: Flash Player 10, AIR 1.5

The MediaPlayerCapabilityChangeEvent.CAN_SEEK_CHANGE constant defines the value of the type property of the event object for a canSeekChange event.

HAS_ALTERNATIVE_AUDIO_CHANGE

Constant 
public static const HAS_ALTERNATIVE_AUDIO_CHANGE:String = "hasAlternativeAudioChange"

Language Version: ActionScript 3.0
Product Version: OSMF 1.6
Runtime Versions: Flash Player 10, AIR 1.5

This event is dispatched by MediaPlayer when its hasAlternativeAudio property has changed.

HAS_AUDIO_CHANGE

Constant 
public static const HAS_AUDIO_CHANGE:String = "hasAudioChange"

Language Version: ActionScript 3.0
Product Version: OSMF 1.0
Runtime Versions: Flash Player 10, AIR 1.5

The MediaPlayerCapabilityChangeEvent.HAS_AUDIO_CHANGE constant defines the value of the type property of the event object for a hasAudioChange event.

HAS_DISPLAY_OBJECT_CHANGE

Constant 
public static const HAS_DISPLAY_OBJECT_CHANGE:String = "hasDisplayObjectChange"

Language Version: ActionScript 3.0
Product Version: OSMF 1.0
Runtime Versions: Flash Player 10, AIR 1.5

The MediaPlayerCapabilityChangeEvent.HAS_DISPLAY_OBJECT_CHANGE constant defines the value of the type property of the event object for a hasDisplayObjectChange event.

HAS_DRM_CHANGE

Constant 
public static const HAS_DRM_CHANGE:String = "hasDRMChange"

Language Version: ActionScript 3.0
Product Version: OSMF 1.0
Runtime Versions: Flash Player 10, AIR 1.5

The MediaPlayerCapabilityChangeEvent.HAS_DRM_CHANGE constant defines the value of the type property of the event object for a hasDRMChange event.

IS_DYNAMIC_STREAM_CHANGE

Constant 
public static const IS_DYNAMIC_STREAM_CHANGE:String = "isDynamicStreamChange"

Language Version: ActionScript 3.0
Product Version: OSMF 1.0
Runtime Versions: Flash Player 10, AIR 1.5

The MediaPlayerCapabilityChangeEvent.IS_DYNAMIC_STREAM_CHANGE constant defines the value of the type property of the event object for a isDynamicStreamChange event.

TEMPORAL_CHANGE

Constant 
public static const TEMPORAL_CHANGE:String = "temporalChange"

Language Version: ActionScript 3.0
Product Version: OSMF 1.0
Runtime Versions: Flash Player 10, AIR 1.5

The MediaPlayerCapabilityChangeEvent.TEMPORAL_CHANGE constant defines the value of the type property of the event object for a temporalChange event.