aggiungo anche la mia, melius abundare...
codice:
MovieClip.prototype.playReverse = function(stopFrame) {
this.stop();
this.onEnterFrame = function() {
if (stopFrame != undefined) {
if (this._currentframe>stopFrame) {
this.prevFrame();
} else {
delete this.onEnterFrame;
}
} else {
if (this._currentframe>1) {
this.prevFrame();
} else {
this.gotoAndStop(this._totalframes);
}
}
};
};
MovieClip.prototype.stopReverse = function() {
delete this.onEnterFrame;
};
esempi:
codice:
this.playReverse(3); //torna indietro fino al frame 3 e poi si ferma;
codice:
this.playReverse(); //torna indietro fino al frame 1 e poi riparte dall'ultimo frame
codice:
this.stopReverse(); // stoppa playReverse