Adds additional assets to the AssetManager. To be called when the factory creates more than one asset.
Adds a method to be called by the AssetManager when the queue has finished processing. Useful e.g. if assets depend on other assets (like an atlas XML depending on the atlas texture).
@param processor function(manager:AssetManager):void; @param priority Processors with a higher priority will be called first. The default processor for texture atlases is called with a priority of '100', others with '0'.
Delay the execution of 'call' until it's allowed. (On mobile, the context may not be accessed while the application is in the background.)
Forwarded to the AssetManager's method with the same name.
Forwarded to the AssetManager's method with the same name.
Accesses a URL (local or remote) and passes the loaded ByteArray to the 'onComplete' callback - or executes 'onError' when the data can't be loaded.
@param url a string containing an URL. @param onComplete function(data:ByteArray, mimeType:string):void; @param onError function(error:string):void;
Forwarded to the AssetManager's method with the same name.
Textures are required to call this method when they begin their restoration process after a context loss.
Textures are required to call this method when they have finished their restoration process after a context loss.
Generated using TypeDoc
A helper class that's passed to an AssetFactory's "create" method.