Packageaway3d.events
Classpublic class LoaderEvent
InheritanceLoaderEvent Inheritance flash.events.Event

LoaderEvent is an Event dispatched to notify changes in loading state.



Public Properties
 PropertyDefined By
  isDependency : Boolean
[read-only] Indicates whether the event occurred while loading a dependency, as opposed to the base file.
LoaderEvent
  message : String
[read-only] The error string on loadError.
LoaderEvent
  url : String
[read-only] The url of the loaded resource.
LoaderEvent
Public Methods
 MethodDefined By
  
LoaderEvent(type:String, url:String = null, isDependency:Boolean = false, errmsg:String = null)
Create a new LoaderEvent object.
LoaderEvent
  
clone():Event
[override] Clones the current event.
LoaderEvent
  
[override]
LoaderEvent
  
[override]
LoaderEvent
Public Constants
 ConstantDefined By
  DEPENDENCY_COMPLETE : String = dependencyComplete
[static] Dispatched when a resource's dependency is retrieved and resolved.
LoaderEvent
  LOAD_ERROR : String = loadError
[static] Dispatched when loading of a asset failed.
LoaderEvent
  RESOURCE_COMPLETE : String = resourceComplete
[static] Dispatched when a resource and all of its dependencies is retrieved.
LoaderEvent
Property Detail
isDependencyproperty
isDependency:Boolean  [read-only]

Indicates whether the event occurred while loading a dependency, as opposed to the base file. Dependencies can be textures or other files that are referenced by the base file.


Implementation
    public function get isDependency():Boolean
messageproperty 
message:String  [read-only]

The error string on loadError.


Implementation
    public function get message():String
urlproperty 
url:String  [read-only]

The url of the loaded resource.


Implementation
    public function get url():String
Constructor Detail
LoaderEvent()Constructor
public function LoaderEvent(type:String, url:String = null, isDependency:Boolean = false, errmsg:String = null)

Create a new LoaderEvent object.

Parameters
type:String — The event type.
 
url:String (default = null) — The loaded or parsed resource.
 
isDependency:Boolean (default = false) — The url of the loaded resource.
 
errmsg:String (default = null)
Method Detail
clone()method
override public function clone():Event

Clones the current event.

Returns
Event — An exact duplicate of the current event.
isDefaultPrevented()method 
override public function isDefaultPrevented():Boolean

Returns
Boolean
preventDefault()method 
override public function preventDefault():void

Constant Detail
DEPENDENCY_COMPLETEConstant
public static const DEPENDENCY_COMPLETE:String = dependencyComplete

Dispatched when a resource's dependency is retrieved and resolved.

LOAD_ERRORConstant 
public static const LOAD_ERROR:String = loadError

Dispatched when loading of a asset failed. Such as wrong parser type, unsupported extensions, parsing errors, malformated or unsupported 3d file etc..

RESOURCE_COMPLETEConstant 
public static const RESOURCE_COMPLETE:String = resourceComplete

Dispatched when a resource and all of its dependencies is retrieved.