springroll.FunctionTask Class
Internal class for dealing with async function calls with AssetManager.
Constructor
springroll.FunctionTask
private
Parameters:
-
asset
Object
-
[cache=false]
Boolean
optional
If we should cache the result
-
async
Function
The required function to call
-
[complete]
Function
optional
The function to call when we're done
-
[id]
String
optional
The task id for mapping the result, if any
filter
protected
Add the sizing to each filter
load
protected
Pass-through to the Application load method
simpleLoad
(
-
url
-
complete
-
[progress]
-
[data]
)
protected
Pass-through to the Application Loader.load
Parameters:
-
url
String
Path to file to load
-
complete
Function
The callback
-
[progress]
Function
optional
The load progress
-
[data]
Object
optional
Additiona data
test
Boolean
static
Test if we should run this task
Returns:
Boolean:
If the asset is compatible with this asset
cache
Boolean
If we should cache the load and use later
Default: false
complete
Function
The user call to fire when completed, returns the arguments
result, original, and additionalAssets
Default: null
original
Object
Reference to the original asset data
status
Int
The current status of the task (waiting, running, etc)
Default: 0
type
String
The task type for display filter