springroll.pixi.AdvancedMovieClipInstance Class

Extends springroll.AnimatorInstance
Module: PIXI Animation

The plugin for working with AdvancedMovieClips and animator

destroy

()

Defined in destroy:260

Reset this animator instance so it can be re-used.

endAnim

()

Defined in endAnim:138

Ends animation playback.

getDuration

(
  • clip
  • event
)
Number
static

Defined in getDuration:209

Calculates the duration of an animation or list of animations.

Parameters:

  • clip

    The clip to check.

  • event String

    The animation or animation list.

Returns:

Number:

Animation duration in milliseconds.

hasAnimation

(
  • clip
  • event
)
Boolean
static

Defined in hasAnimation:170

Checks if animation exists

Parameters:

  • clip

    The clip to check for an animation.

  • event String

    The frame label event (e.g. "onClose" to "onClose_stop")

Returns:

Boolean:

does this animation exist?

init

(
  • clip
)

Defined in init:54

The initialization method

Parameters:

  • clip

    The movieclip

setPosition

(
  • newPos
)

Defined in setPosition:147

Updates position to a new value, and does anything that the clip needs, like updating timelines.

Parameters:

  • newPos Number

    The new position in the animation.

test

() Boolean
static

Defined in test:159

Check to see if a clip is compatible with this

Returns:

Boolean:

if the clip is supported by this instance

firstFrame

Int

Defined in firstFrame:35

The frame number of the first frame of the current animation. If this is -1, then the animation is currently a pause instead of an animation.

lastFrame

Int

Defined in lastFrame:43

The frame number of the last frame of the current animation.

length

Int

Defined in length:28

Length of current animation in frames.

startTime

Number

Defined in startTime:22

The start time of the current animation on the movieclip's timeline.