springroll.easeljs.FlashArtAtlasTask Class
Internal class for loading a texture atlas for a FlashArt load.
Constructor
springroll.easeljs.FlashArtAtlasTask
private
Parameters:
-
asset
Object
-
type
String
The asset type must be "easeljs".
-
format
String
The asset format must be "FlashAtlas".
-
atlas
String
The TextureAtlas source data
-
[image]
String
optional
-
[color]
String
optional
The color image path, if not using image property
-
[alpha]
String
optional
The alpha image path, if not using image property
-
[libName='lib']
String
optional
The global window object for symbols
-
[id]
String
optional
-
[cache=false]
Boolean
optional
If we should cache the result
-
[complete]
Function
optional
The event to call when done
-
[sizes=null]
Object
optional
Define if certain sizes are not supported
destroy
()
Destroy this and discard
filter
protected
Add the sizing to each filter
load
protected
Pass-through to the Application load method
loadAtlas
Load a texture atlas from the properties
Parameters:
-
assets
Object
The assets object to load
-
done
Function
Callback when complete, returns new TextureAtlas
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
alpha
String
The atlas alpha source path
atlas
String
The TextureAtlas data source path
cache
Boolean
If we should cache the load and use later
Default: false
color
String
The atlas color source path
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