Handle the asynchronous loading of multiple assets.
_onLoaded
complete
load
The
Handler when a load is finished
complete
Function
The function to call when done
load
springroll.AssetLoad
The current load
The
returned results
getLoad
Get either a new AssetLoad or a recycled one
The load to use
load
asset
[options]
Load a bunch of assets, can only call one load at a time
asset
Object | Array
The assets to load
[options]
Object
optional
The loading options
[complete]
Function
optional
The callback when finished
[progress]
Function
optional
The callback when loading percentage is updated
[taskDone]
Function
optional
The callback when finished with each individual task
[autoStart=true]
Boolean
optional
If we should start running right away
[startAll=true]
Boolean
optional
If we should run all the tasks at once, in parallel
[cacheAll=false]
Boolean
optional
If we should cache all files
[type]
String
optional
The type of assets to load, defaults to AssetManager.prototype.defaultType
The reference to the current load
poolLoad
load
Stash the load for use later
load
springroll.AssetLoad
The load to recycle
sizes
Handle multiple asset sizes. Defaults are 'full' at a scale of 1, and 'half' at a scale of 0.5 (under 400 points).