springroll.easeljs.FlashArtTask Class
Loads javascript art exported from Flash, with special care taken to allow images to be
handled properly and to attempt to avoid library definition collisions between different
pieces of art.
Constructor
springroll.easeljs.FlashArtTask
private
Parameters:
-
asset
Object
-
type
String
Asset type must be "easeljs"
-
format
String
Asset format must be "springroll.easeljs.FlashArt"
-
src
String
-
[images]
Array
optional
An array of Image, TextureAtlas, or SpriteSheet assets to load
-
[cache=false]
Boolean
optional
If we should cache the result
-
[id]
String
optional
-
[complete]
Function
optional
The event to call when done
-
[libName='lib']
String
optional
The global window object for symbols
-
[imagesName='images']
String
optional
The global window object for images
-
[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
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
images
Array
Any image, atlas, or SpriteSheet assets that should be loaded along with this piece
of flash art.
imagesName
String
The name of the window object images hang on
Default: 'images'
libName
String
The name of the window object library items hang on
Default: 'lib'
original
Object
Reference to the original asset data
src
String
The path to the flash asset
status
Int
The current status of the task (waiting, running, etc)
Default: 0
type
String
The task type for display filter