Package | com.adobe.mediacore.events |
Class | public final class SizeAvailableEvent |
Inheritance | SizeAvailableEvent ![]() |
Property | Defined By | ||
---|---|---|---|
height : int [read-only]
The current height of the video. | SizeAvailableEvent | ||
width : int [read-only]
The current width of the video. | SizeAvailableEvent |
Method | Defined 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 |
Constant | Defined By | ||
---|---|---|---|
SIZE_AVAILABLE : String = sizeAvailable [static]
Event dispatched when the video size is available. | SizeAvailableEvent | ||
SIZE_UNKNOWN : int = -1 [static] | SizeAvailableEvent |
height | property |
height:int
[read-only] The current height of the video.
public function get height():int
width | property |
width:int
[read-only] The current width of the video.
public function get width():int
SizeAvailableEvent | () | Constructor |
public function SizeAvailableEvent(type:String, bubbles:Boolean = false, cancelable:Boolean = false, width:int = 0, height:int = 0)
Default constructor.
Parameterstype:String | |
bubbles:Boolean (default = false )
| |
cancelable:Boolean (default = false )
| |
width:int (default = 0 )
| |
height:int (default = 0 )
|
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
|
SizeAvailableEvent — a valid instance of SizeAvailableEvent
|
SIZE_AVAILABLE | Constant |
public static const SIZE_AVAILABLE:String = sizeAvailable
Event dispatched when the video size is available.
SIZE_UNKNOWN | Constant |
public static const SIZE_UNKNOWN:int = -1