MovieClip Class
A MovieClip is a simple way to display an animation depicted by a list of textures.
Constructor
MovieClip
(
-
textures
Parameters:
-
textures
Arrayan array of {Texture} objects that make up the animation
Item Index
Methods
Properties
Methods
gotoAndPlay
(
-
frameNumber
Goes to a specific frame and begins playing the MovieClip
Parameters:
-
frameNumber
Numberframe index to start at
gotoAndStop
(
-
frameNumber
Stops the MovieClip and goes to a specific frame
Parameters:
-
frameNumber
Numberframe index to stop at
play
()
Plays the MovieClip
stop
()
Stops the MovieClip
Properties
animationSpeed
Number
The speed that the MovieClip will play at. Higher is faster, lower is slower
currentFrame
Number
[read only] The index MovieClips current frame (this may not have to be a whole number)
playing
Boolean
[read only] indicates if the MovieClip is currently playing
textures
Array
The array of textures that make up the animation