Package | artcustomer.framework.loaders.assets |
Class | public class AssetsLoader |
Inheritance | AssetsLoader flash.events.EventDispatcher |
Implements | IDestroyable |
Method | Defined By | ||
---|---|---|---|
Constructor
| AssetsLoader | ||
destroy():void
Destructor
| AssetsLoader | ||
dumpAssets():String
Get assets list in String format. | AssetsLoader | ||
Get Asset by source
| AssetsLoader | ||
getAssetByFile(file:String):IAsset
Get Asset by file
| AssetsLoader | ||
getAssetByName(name:String):IAsset
Get Asset by name
| AssetsLoader | ||
Get asset group. | AssetsLoader | ||
[static]
Instantiate AssetsLoader. | AssetsLoader | ||
hasAsset(source:String):Boolean
Get Asset by source
| AssetsLoader | ||
loadQueue(id:String = assets, description:String = loading):void
Load queue. | AssetsLoader | ||
queueAsset(source:String, name:String, group:String = assets):void
Add file in queue. | AssetsLoader | ||
unloadQueue():void
Unload queue. | AssetsLoader |
Event | Summary | Defined By | ||
---|---|---|---|---|
AssetsLoader | ||||
AssetsLoader | ||||
AssetsLoader | ||||
AssetsLoader | ||||
AssetsLoader |
AssetsLoader | () | Constructor |
public function AssetsLoader()
Constructor
destroy | () | method |
public function destroy():void
Destructor
dumpAssets | () | method |
public function dumpAssets():String
Get assets list in String format.
ReturnsString —
|
getAsset | () | method |
public function getAsset(source:String):IAsset
Get Asset by source
Parameters
source:String |
IAsset —
|
getAssetByFile | () | method |
public function getAssetByFile(file:String):IAsset
Get Asset by file
Parameters
file:String |
IAsset —
|
getAssetByName | () | method |
public function getAssetByName(name:String):IAsset
Get Asset by name
Parameters
name:String |
IAsset —
|
getGroup | () | method |
public function getGroup(group:String):Vector.<IAsset>
Get asset group.
Parameters
group:String |
Vector.<IAsset> —
|
getInstance | () | method |
hasAsset | () | method |
public function hasAsset(source:String):Boolean
Get Asset by source
Parameters
source:String |
Boolean —
|
loadQueue | () | method |
public function loadQueue(id:String = assets, description:String = loading):void
Load queue.
Parameters
id:String (default = assets )
| |
description:String (default = loading )
|
queueAsset | () | method |
public function queueAsset(source:String, name:String, group:String = assets):void
Add file in queue.
Parameters
source:String — : File
| |
name:String — : Name (id)
| |
group:String (default = assets ) — : Useful to group some assets
|
unloadQueue | () | method |
public function unloadQueue():void
Unload queue.
loadingClose | Event |
loadingComplete | Event |
loadingError | Event |
loadingProgress | Event |
loadingStart | Event |