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


Inherited from Event.


Can be created using method new:

Lib.Away3D.Events.LoaderEvent.new(type, url, isDependency, errmsg)

Create a new LoaderEvent object.

type - String, The event type.

url - String, The url of the loaded resource. (default = nil)

isDependency - Bool, 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. (default = false)

errmsg - String, error message (default = nil)


Created LoaderEvent object has properties:

url

[read-only] String, The url of the loaded resource.

message

[read-only] String, The error string on loadError.

isDependency

[read-only] Bool, 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.


methods:

clone()

[override] Clones the current event.



Static constants:

Lib.Away3D.Events.LoaderEvent.LOAD_ERROR

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

Lib.Away3D.Events.LoaderEvent.RESOURCE_COMPLETE

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

Lib.Away3D.Events.LoaderEvent.DEPENDENCY_COMPLETE

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


Created with the Personal Edition of HelpNDoc: Write eBooks for the Kindle