/ Published in: ActionScript
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
MovieClip.prototype.rewind = function(from, to) { this.from = from this.to = to if (!from) this.from = this._currentframe if (!to) this.to = 1 if (this.from <= this.to) return this.gotoAndStop(this.from) this.onEnterFrame = function() { if (this._currentframe == this.to) { this.onEnterFrame = null return } this.prevFrame() } }