PDA

View Full Version : Playing Backwards


Dave Taylor
03-21-2006, 07:59 PM
Hi very simple question.

Can a Movie Clip be played backwards?

Seems an obvious requirement but cant see the syntax

Re Dave

charlieFlash
03-22-2006, 02:59 PM
try placing this on an actions frame (you'll need to replace "my_mc" with the name of your clip):


// stop the clip from playing
my_mc.stop ();
// create a loop to rewind the clip
my_mc.onEnterFrame = function () {
if (this._currentframe > 1) {
this.gotoAndStop (this._currentframe - 1);
} else {
this.gotoAndStop (this._totalframes);
}
};