springroll.pixi.AdvancedMovieClipInstance Class
The plugin for working with AdvancedMovieClips and animator
destroy
()
Reset this animator instance
so it can be re-used.
getDuration
Number
static
Calculates the duration of an animation or list of animations.
Parameters:
-
clip
-
event
String
The animation or animation list.
Returns:
Number:
Animation duration in milliseconds.
hasAnimation
Boolean
static
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
The initialization method
setPosition
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
Check to see if a clip is compatible with this
Returns:
Boolean:
if the clip is supported by this instance
firstFrame
Int
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
The frame number of the last frame of the current animation.
length
Int
Length of current animation in frames.
startTime
Number
The start time of the current animation on the movieclip's timeline.