Instances of this class are returned as tokens by loading operations
to provide an object on which events can be listened for in cases where
the actual asset loader is not directly available (e.g. when using the
AssetLibrary to perform the load.)
By listening for events on this class instead of directly on the
AssetLibrary, one can distinguish different loads from each other.
The token will dispatch all events that the original AssetLoader dispatches,
while not providing an interface to obstruct the load and is as such a
safer return value for loader wrappers than the loader itself.
arcane var _loader:AssetLoader
public function AssetLoaderToken(loader:AssetLoader)
Parameters override public function addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
Parameters
| type:String |
|
| listener:Function |
|
| useCapture:Boolean (default = false )
|
|
| priority:int (default = 0 )
|
|
| useWeakReference:Boolean (default = false )
|
override public function hasEventListener(type:String):Boolean
Parameters
Returnsoverride public function removeEventListener(type:String, listener:Function, useCapture:Boolean = false):void
Parameters
| type:String |
|
| listener:Function |
|
| useCapture:Boolean (default = false )
|
override public function willTrigger(type:String):Boolean
Parameters
ReturnsEvent Object Type: away3d.events.AssetEvent
AssetEvent.type property = away3d.events.AssetEvent
Dispatched when an animation node has been constructed from a resource.
Event Object Type: away3d.events.AssetEvent
AssetEvent.type property = away3d.events.AssetEvent
Dispatched when an animation set has been constructed from a group of animation state resources.
Event Object Type: away3d.events.AssetEvent
AssetEvent.type property = away3d.events.AssetEvent
Dispatched when an animation state has been constructed from a group of animation node resources.
Event Object Type: away3d.events.AssetEvent
AssetEvent.type property = away3d.events.AssetEvent
Dispatched when a animator asset has been constructed from a resource.
Event Object Type: away3d.events.AssetEvent
AssetEvent.type property = away3d.events.AssetEvent
Dispatched when any asset finishes parsing. Also see specific events for each
individual asset type (meshes, materials et c.)
Event Object Type: away3d.events.AssetEvent
AssetEvent.type property = away3d.events.AssetEvent
Dispatched when a container asset has been constructed from a resource.
Event Object Type: away3d.events.LoaderEvent
LoaderEvent.type property = away3d.events.LoaderEvent
Dispatched when a single dependency (which may be the main file of a resource)
finishes loading.
Event Object Type: away3d.events.AssetEvent
AssetEvent.type property = away3d.events.AssetEvent
Dispatched when a geometry asset has been constructed from a resource.
Event Object Type: away3d.events.LoaderEvent
LoaderEvent.type property = away3d.events.LoaderEvent
Dispatched when an error occurs during loading.
Event Object Type: away3d.events.AssetEvent
AssetEvent.type property = away3d.events.AssetEvent
Dispatched when a material asset has been constructed from a resource.
Event Object Type: away3d.events.LoaderEvent
LoaderEvent.type property = away3d.events.LoaderEvent
Dispatched when a full resource (including dependencies) finishes loading.
Event Object Type: away3d.events.AssetEvent
AssetEvent.type property = away3d.events.AssetEvent
Dispatched when a skeleton asset has been constructed from a resource.
Event Object Type: away3d.events.AssetEvent
AssetEvent.type property = away3d.events.AssetEvent
Dispatched when a skeleton pose asset has been constructed from a resource.
Event Object Type: away3d.events.AssetEvent
AssetEvent.type property = away3d.events.AssetEvent
Dispatched when an animation state transition has been constructed from a group of animation node resources.
Event Object Type: away3d.events.AssetEvent
AssetEvent.type property = away3d.events.AssetEvent
Dispatched when a texture asset has been constructed from a resource.
Tue Jul 17 2012, 10:37 AM +01:00