ReversibleMovieClip

Kind of class:class
Inherits from:CoreMovieClip < MovieClip
Known subclasses:
Version:04/09/07
Author:Aaron Clinger
Classpath:org.casalib.movieclip.ReversibleMovieClip
File last modified:Monday, 01 December 2008, 13:34:40
Extends MovieClip to provide additional timeline controlling functions: playBackwards and gotoAndPlayBackwards.
Since:
  • Flash Player 7
Example:
  • this.backwards_mc.gotoAndPlayBackwards("frameLabel");
Usage note:
  • When calling timeline contolling functions (stop, gotoAndStop, play and gotoAndPlay) from inside a MovieClip extended by ReversibleMovieClip ALWAYS prefix with this. Example:

    this.stop();
    This way the class' methods will handle the call instead of the global function equivalent.

Summary


Class methods
Class methods inherited from CoreMovieClip
Instance methods
  • playBackwards : Void
    • Plays the Timeline in reverse from current playhead position.
  • gotoAndPlayBackwards (frame:Object) : Void
    • Sends the playhead to the specified frame on the Timeline and plays in reverse from that frame.
  • isPlayingBackwards : Boolean
    • Returns if the MovieClip is or isn't playing in reverse.
  • destroy : Void

Instance methods

destroy

function destroy (
) : Void

gotoAndPlayBackwards

function gotoAndPlayBackwards (
frame:Object) : Void

Sends the playhead to the specified frame on the Timeline and plays in reverse from that frame.
Parameters:
frame:
A number representing the frame number, or a string representing the label of the frame, to which the playhead is sent.

isPlayingBackwards

function isPlayingBackwards (
) : Boolean

Returns if the MovieClip is or isn't playing in reverse.
Returns:
  • Returns true if the MovieClip is currently playing in reverse; otherwise false.

playBackwards

function playBackwards (
) : Void

Plays the Timeline in reverse from current playhead position.