springroll.SoundTask Class
Internal task for preloading a list of sounds. When the result of the load is
destroyed (destroy()), then the list of sounds are unloaded.
Constructor
springroll.SoundTask
private
Parameters:
-
asset
Object
-
sounds
Array
The list of Sound aliases
-
[cache=false]
Boolean
optional
If we should cache the result
-
[id]
String
optional
-
[complete]
Function
optional
The event to call when done
destroy
()
Destroy and don't use after this
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
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
sounds
Array
The path to the list of sound aliases
status
Int
The current status of the task (waiting, running, etc)
Default: 0
type
String
The task type for display filter