API Docs for: 1.2.1
Show:

MovieClip Class

Defined in: pixi/MovieClip.js:5
Module: PIXI

A MovieClip is a simple way to display an animation depicted by a list of textures.

Constructor

MovieClip

(
  • textures
)

Defined in pixi/MovieClip.js:5

Parameters:

  • textures Array

    an array of {Texture} objects that make up the animation

Methods

gotoAndPlay

(
  • frameNumber
)

Goes to a specific frame and begins playing the MovieClip

Parameters:

  • frameNumber Number

    frame index to start at

gotoAndStop

(
  • frameNumber
)

Stops the MovieClip and goes to a specific frame

Parameters:

  • frameNumber Number

    frame 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