Packagecv.events
Classpublic class LoadEvent
InheritanceLoadEvent Inheritance flash.events.Event

The LoadEvent class defines events for TempoLite, AudioManager and VideoManager. These events include the following:

See also

AudioManager
VideoManager


Public Properties
 PropertyDefined 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
Public Methods
 MethodDefined 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
Public Constants
 ConstantDefined by
  LOAD_START : String = "loadStart"
[static] Defines the value of the type property of an loadStart event object.
LoadEvent
Property detail
mediaTypeproperty
public var mediaType:String

Gets the media type of the item that is associated with this event.

timeproperty 
public var time:Number

Gets the duration of the item that is associated with this event.

urlproperty 
public var url:String

Gets the url of the item that is associated with this event.

Constructor detail
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.

Parameters
type: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.
Method detail
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.

Returns
Event — 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]

Returns
String — A string representation of the LoadEvent object.
Constant detail
LOAD_STARTconstant
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
cancelablefalse; there is no default behavior to cancel.
timeThe estimated duration of the media file.
urlTThe url of the item being loaded.
currentTargetThe object that is actively processing the event object with an event listener.
indexThe zero-based index in the DataProvider that contains the renderer.
itemA reference to the data that belongs to the renderer.
mediaTypeThe type of media being loaded, either "audio" or "video".
targetThe 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.