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

Static variables

@:value("dependencyComplete")staticinlineread onlyDEPENDENCY_COMPLETE:String = "dependencyComplete"

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

@:value("loadError")staticinlineread onlyLOAD_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..

@:value("resourceComplete")staticinlineread onlyRESOURCE_COMPLETE:String = "resourceComplete"

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

Constructor

@:value({ errmsg : null, isDependency : false, url : null })new(type:String, ?url:String, isDependency:Bool = false, ?errmsg:String)

Create a new LoaderEvent object.

Parameters:

type

The event type.

resource

The loaded or parsed resource.

url

The url of the loaded resource.

Variables

read onlyisDependency:Bool

read onlymessage:String

read onlyurl:String

Methods

clone():Event

Clones the current event.

Returns:

An exact duplicate of the current event.