Packageaway3d.loaders.misc
Classpublic class AssetLoaderToken
InheritanceAssetLoaderToken Inheritance flash.events.EventDispatcher

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.



Public Methods
 MethodDefined By
  
AssetLoaderToken
  
addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
[override]
AssetLoaderToken
  
hasEventListener(type:String):Boolean
[override]
AssetLoaderToken
  
removeEventListener(type:String, listener:Function, useCapture:Boolean = false):void
[override]
AssetLoaderToken
  
willTrigger(type:String):Boolean
[override]
AssetLoaderToken
Events
 Event Summary Defined By
  Dispatched when an animation node has been constructed from a resource.AssetLoaderToken
  Dispatched when an animation set has been constructed from a group of animation state resources.AssetLoaderToken
  Dispatched when an animation state has been constructed from a group of animation node resources.AssetLoaderToken
  Dispatched when a animator asset has been constructed from a resource.AssetLoaderToken
  Dispatched when any asset finishes parsing.AssetLoaderToken
  Dispatched when a container asset has been constructed from a resource.AssetLoaderToken
  Dispatched when a single dependency (which may be the main file of a resource) finishes loading.AssetLoaderToken
  Dispatched when a geometry asset has been constructed from a resource.AssetLoaderToken
  Dispatched when an error occurs during loading.AssetLoaderToken
  Dispatched when a material asset has been constructed from a resource.AssetLoaderToken
  Dispatched when a full resource (including dependencies) finishes loading.AssetLoaderToken
  Dispatched when a skeleton asset has been constructed from a resource.AssetLoaderToken
  Dispatched when a skeleton pose asset has been constructed from a resource.AssetLoaderToken
  Dispatched when an animation state transition has been constructed from a group of animation node resources.AssetLoaderToken
  Dispatched when a texture asset has been constructed from a resource.AssetLoaderToken
Property Detail
_loaderproperty
arcane var _loader:AssetLoader

Constructor Detail
AssetLoaderToken()Constructor
public function AssetLoaderToken(loader:AssetLoader)



Parameters
loader:AssetLoader
Method Detail
addEventListener()method
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)

hasEventListener()method 
override public function hasEventListener(type:String):Boolean

Parameters

type:String

Returns
Boolean
removeEventListener()method 
override public function removeEventListener(type:String, listener:Function, useCapture:Boolean = false):void

Parameters

type:String
 
listener:Function
 
useCapture:Boolean (default = false)

willTrigger()method 
override public function willTrigger(type:String):Boolean

Parameters

type:String

Returns
Boolean
Event Detail
animationNodeComplete Event
Event Object Type: away3d.events.AssetEvent
AssetEvent.type property = away3d.events.AssetEvent

Dispatched when an animation node has been constructed from a resource.

animationSetComplete Event  
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.

animationStateComplete Event  
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.

animatorComplete Event  
Event Object Type: away3d.events.AssetEvent
AssetEvent.type property = away3d.events.AssetEvent

Dispatched when a animator asset has been constructed from a resource.

assetComplete Event  
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.)

containerComplete Event  
Event Object Type: away3d.events.AssetEvent
AssetEvent.type property = away3d.events.AssetEvent

Dispatched when a container asset has been constructed from a resource.

dependencyComplete Event  
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.

geometryComplete Event  
Event Object Type: away3d.events.AssetEvent
AssetEvent.type property = away3d.events.AssetEvent

Dispatched when a geometry asset has been constructed from a resource.

loadError Event  
Event Object Type: away3d.events.LoaderEvent
LoaderEvent.type property = away3d.events.LoaderEvent

Dispatched when an error occurs during loading.

materialComplete Event  
Event Object Type: away3d.events.AssetEvent
AssetEvent.type property = away3d.events.AssetEvent

Dispatched when a material asset has been constructed from a resource.

resourceComplete Event  
Event Object Type: away3d.events.LoaderEvent
LoaderEvent.type property = away3d.events.LoaderEvent

Dispatched when a full resource (including dependencies) finishes loading.

skeletonComplete Event  
Event Object Type: away3d.events.AssetEvent
AssetEvent.type property = away3d.events.AssetEvent

Dispatched when a skeleton asset has been constructed from a resource.

skeletonPoseComplete Event  
Event Object Type: away3d.events.AssetEvent
AssetEvent.type property = away3d.events.AssetEvent

Dispatched when a skeleton pose asset has been constructed from a resource.

stateTransitionComplete Event  
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.

textureComplete Event  
Event Object Type: away3d.events.AssetEvent
AssetEvent.type property = away3d.events.AssetEvent

Dispatched when a texture asset has been constructed from a resource.