springroll.pixi.AdvancedMovieClipTask Class

Extends springroll.TextureAtlasTask
Module: PIXI Animation

Internal class for loading and instantiating an AdvancedMovieClip.

Constructor

springroll.pixi.AdvancedMovieClipTask

(
  • asset
)
private

Parameters:

  • asset Object

    The data properties

    • type String

      This must be "pixi" to signify that this asset should be handled as an AdvancedMovieClip, instead of the otherwise identical BitmapMovieClip.

    • anim String

      Path to the JSON configuration for AdvancedMovieClip

    • atlas String

      The TextureAtlas source data

    • [cache=false] Boolean optional

      If we should cache the result

    • [image] String optional

      The atlas image path

    • [color] String optional

      The color image path, if not using image property

    • [alpha] String optional

      The alpha image path, if not using image property

    • [id] String optional

      Id of asset

    • [complete] Function optional

      The event to call when done

    • [sizes=null] Object optional

      Define if certain sizes are not supported

Methods

Properties

start

(
  • callback
)

Defined in start:57

Start the task

Parameters:

  • callback Function

    Callback when finished

test

(
  • asset
)
Boolean
static

Defined in test:45

Test if we should run this task

Parameters:

  • asset Object

    The asset to check

Returns:

Boolean:

If the asset is compatible with this asset

anim

String

Defined in anim:35

The AdvancedMovieClip data source path