LoaderEvent is an Event dispatched to notify changes in loading state.
Static variables
staticinlineread onlyDEPENDENCY_COMPLETE:String = "dependencyComplete"
Dispatched when a resource's dependency is retrieved and resolved.
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..
staticinlineread onlyRESOURCE_COMPLETE:String = "resourceComplete"
Dispatched when a resource and all of its dependencies is retrieved.
Constructor
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. |