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
  message : String
[read-only] The error string on loadError.
LoaderEvent
  resource : IResource
[read-only] The loaded or parsed resource.
LoaderEvent
  url : String
[read-only] The url of the loaded resource.
LoaderEvent
Public Methods
 MethodDefined by
  
LoaderEvent
(type:String, resource:IResource, url:String = null, errmsg:String = null)
Create a new LoaderEvent object.
LoaderEvent
  
clone():Event
Clones the current event.
LoaderEvent
Public Constants
 ConstantDefined by
  LOAD_COMPLETE : String = "loadComplete"
[static] Dispatched when loading of an asset completed.
LoaderEvent
  LOAD_ERROR : String = "loadError"
[static] Dispatched when loading of a asset failed.
LoaderEvent
  LOAD_MAP_ERROR : String = "loadMapError"
[static] Dispatched when loading of a bitmap (png.
LoaderEvent
  PARSE_COMPLETE : String = "parseComplete"
[static] Dispatched when parsing of an asset completed.
LoaderEvent
Property detail
messageproperty
message:String  [read-only]

The error string on loadError.

Implementation
    public function get message():String
resourceproperty 
resource:IResource  [read-only]

The loaded or parsed resource.

Implementation
    public function get resource():IResource
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, resource:IResource, url:String = null, errmsg:String = null)Parameters
type:String — The event type.
 
resource:IResource — The loaded or parsed resource.
 
url:String (default = null) — The url of the loaded resource.
 
errmsg:String (default = null)
Init Parameters
Method detail
clone()method
public override function clone():Event

Clones the current event.

Returns
Event — An exact duplicate of the current event.
Constant detail
LOAD_COMPLETEconstant
public static const LOAD_COMPLETE:String = "loadComplete"

Dispatched when loading of an asset completed.

LOAD_ERRORconstant 
public static const LOAD_ERROR:String = "loadError"

Dispatched when loading of a asset failed.

LOAD_MAP_ERRORconstant 
public static const LOAD_MAP_ERROR:String = "loadMapError"

Dispatched when loading of a bitmap (png. jpg) failed.

PARSE_COMPLETEconstant 
public static const PARSE_COMPLETE:String = "parseComplete"

Dispatched when parsing of an asset completed.

Wiki link
Click to go to the wiki page for 'away3d.events.LoaderEvent'

Code examples

Comments