Packagecom.adobe.mediacore.events
Classpublic class ContentLoadingEvent
InheritanceContentLoadingEvent Inheritance flash.events.Event



Public Properties
 PropertyDefined By
  duration : Number
[read-only]
ContentLoadingEvent
  handleId : int
[read-only]
ContentLoadingEvent
  mediaError : MediaError
[read-only]
ContentLoadingEvent
  resource : MediaResource
[read-only]
ContentLoadingEvent
  resourceId : int
[read-only]
ContentLoadingEvent
Public Methods
 MethodDefined By
  
ContentLoadingEvent(type:String, bubbles:Boolean = false, cancelable:Boolean = false, resource:MediaResource = null, resourceId:int = -1, handleId:int = -1, duration:int = 0, mediaError:MediaError = null)
Constructor.
ContentLoadingEvent
  
clone():Event
[override]
ContentLoadingEvent
  
createCompleted(resource:MediaResource, resourceId:int, handleId:int, duration:Number):ContentLoadingEvent
[static]
ContentLoadingEvent
  
createFailed(resource:MediaResource, resourceId:int, mediaError:MediaError):ContentLoadingEvent
[static]
ContentLoadingEvent
Public Constants
 ConstantDefined By
  COMPLETED : String = contentLoadingCompleted
[static] Event dispatched when the loading process was completed successfully.
ContentLoadingEvent
  FAILED : String = contentLoadingFailed
[static] Event dispatched when the loading process has failed.
ContentLoadingEvent
Property Detail
durationproperty
duration:Number  [read-only]


Implementation
    public function get duration():Number
handleIdproperty 
handleId:int  [read-only]


Implementation
    public function get handleId():int
mediaErrorproperty 
mediaError:MediaError  [read-only]


Implementation
    public function get mediaError():MediaError
resourceproperty 
resource:MediaResource  [read-only]


Implementation
    public function get resource():MediaResource
resourceIdproperty 
resourceId:int  [read-only]


Implementation
    public function get resourceId():int
Constructor Detail
ContentLoadingEvent()Constructor
public function ContentLoadingEvent(type:String, bubbles:Boolean = false, cancelable:Boolean = false, resource:MediaResource = null, resourceId:int = -1, handleId:int = -1, duration:int = 0, mediaError:MediaError = null)

Constructor.

Parameters
type:String — The type of the event.
 
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.
 
resource:MediaResource (default = null)
 
resourceId:int (default = -1)
 
handleId:int (default = -1)
 
duration:int (default = 0)
 
mediaError:MediaError (default = null)
Method Detail
clone()method
override public function clone():Event

Returns
Event
createCompleted()method 
public static function createCompleted(resource:MediaResource, resourceId:int, handleId:int, duration:Number):ContentLoadingEvent

Parameters

resource:MediaResource
 
resourceId:int
 
handleId:int
 
duration:Number

Returns
ContentLoadingEvent
createFailed()method 
public static function createFailed(resource:MediaResource, resourceId:int, mediaError:MediaError):ContentLoadingEvent

Parameters

resource:MediaResource
 
resourceId:int
 
mediaError:MediaError

Returns
ContentLoadingEvent
Constant Detail
COMPLETEDConstant
public static const COMPLETED:String = contentLoadingCompleted

Event dispatched when the loading process was completed successfully.

FAILEDConstant 
public static const FAILED:String = contentLoadingFailed

Event dispatched when the loading process has failed.