Packagecom.adobe.mediacore.events
Classpublic final class SizeAvailableEvent
InheritanceSizeAvailableEvent Inheritance flash.events.Event

Event dispatched by the media player when the video size is available.



Public Properties
 PropertyDefined By
  height : int
[read-only] The current height of the video.
SizeAvailableEvent
  width : int
[read-only] The current width of the video.
SizeAvailableEvent
Public Methods
 MethodDefined By
  
SizeAvailableEvent(type:String, bubbles:Boolean = false, cancelable:Boolean = false, width:int = 0, height:int = 0)
Default constructor.
SizeAvailableEvent
  
clone():Event
[override]
SizeAvailableEvent
  
create(width:int, height:Number):SizeAvailableEvent
[static] Factory method for this event.
SizeAvailableEvent
Public Constants
 ConstantDefined By
  SIZE_AVAILABLE : String = sizeAvailable
[static] Event dispatched when the video size is available.
SizeAvailableEvent
  SIZE_UNKNOWN : int = -1
[static]
SizeAvailableEvent
Property Detail
heightproperty
height:int  [read-only]

The current height of the video.


Implementation
    public function get height():int
widthproperty 
width:int  [read-only]

The current width of the video.


Implementation
    public function get width():int
Constructor Detail
SizeAvailableEvent()Constructor
public function SizeAvailableEvent(type:String, bubbles:Boolean = false, cancelable:Boolean = false, width:int = 0, height:int = 0)

Default constructor.

Parameters
type:String
 
bubbles:Boolean (default = false)
 
cancelable:Boolean (default = false)
 
width:int (default = 0)
 
height:int (default = 0)
Method Detail
clone()method
override public function clone():Event

Returns
Event
create()method 
public static function create(width:int, height:Number):SizeAvailableEvent

Factory method for this event.

Parameters

width:int — the current video width
 
height:Number — the current video height

Returns
SizeAvailableEvent — a valid instance of SizeAvailableEvent
Constant Detail
SIZE_AVAILABLEConstant
public static const SIZE_AVAILABLE:String = sizeAvailable

Event dispatched when the video size is available.

SIZE_UNKNOWNConstant 
public static const SIZE_UNKNOWN:int = -1