Package | cv.events |
Class | public class LoadEvent |
Inheritance | LoadEvent ![]() |
LoadEvent.LOAD_START
: dispatched after a file has begun loading.See also
Property | Defined by | ||
---|---|---|---|
mediaType : String
Gets the media type of the item that is associated with this event.
| LoadEvent | ||
time : Number
Gets the duration of the item that is associated with this event.
| LoadEvent | ||
url : String
Gets the url of the item that is associated with this event.
| LoadEvent |
Method | Defined by | ||
---|---|---|---|
LoadEvent(type:String, bubbles:Boolean = false, cancelable:Boolean = false, url:String = "", mediaType:String = "", time:Number = 0)
Creates a new LoadEvent object with the specified parameters.
| LoadEvent | ||
clone():Event
Creates a copy of the LoadEvent object and sets the value of each parameter to match
the original.
| LoadEvent | ||
toString():String
Returns a string that contains all the properties of the LoadEvent object.
| LoadEvent |
Constant | Defined by | ||
---|---|---|---|
LOAD_START : String = "loadStart" [static]
Defines the value of the
type property of an
loadStart event object. | LoadEvent |
mediaType | property |
public var mediaType:String
Gets the media type of the item that is associated with this event.
time | property |
public var time:Number
Gets the duration of the item that is associated with this event.
url | property |
public var url:String
Gets the url of the item that is associated with this event.
LoadEvent | () | constructor |
public function LoadEvent(type:String, bubbles:Boolean = false, cancelable:Boolean = false, url:String = "", mediaType:String = "", time:Number = 0)
Creates a new LoadEvent object with the specified parameters.
Parameterstype:String — The event type; this value identifies the action that caused the event.
|
|
bubbles:Boolean (default = false ) — Indicates whether the event can bubble up the display list hierarchy.
|
|
cancelable:Boolean (default = false ) — Indicates whether the behavior associated with the event can be
prevented.
|
|
url:String (default = " ") — The url of the item being loaded.
|
|
mediaType:String (default = " ") — The type of media being loaded, either "audio" or "video".
|
|
time:Number (default = 0 ) — The estimated duration of the media file.
|
clone | () | method |
public override function clone():Event
Creates a copy of the LoadEvent object and sets the value of each parameter to match the original.
ReturnsEvent — A new LoadEvent object with parameter values that match those of the original.
|
toString | () | method |
public override function toString():String
Returns a string that contains all the properties of the LoadEvent object. The string is in the following format:
[LoadEvent type=value bubbles=value
cancelable=value url=value
mediaType=value time=value
]
String — A string representation of the LoadEvent object.
|
LOAD_START | constant |
public static const LOAD_START:String = "loadStart"
Defines the value of the type
property of an
loadStart
event object.
This event has the following properties:
Property | Value |
---|---|
bubbles |
false |
cancelable | false ; there is
no default behavior to cancel. |
time | The estimated duration of the media file. |
url | TThe url of the item being loaded. |
currentTarget | The object that is actively processing the event object with an event listener. |
index | The zero-based index in the DataProvider that contains the renderer. |
item | A reference to the data that belongs to the renderer. |
mediaType | The type of media being loaded, either "audio" or "video". |
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. |