
February 24th, 2003, 10:44 AM
|
|
flash junkie
|
|
Join Date: Jan 2003
Location: CO, USA
Posts: 172
Time spent in forums: 5 m 38 sec
Reputation Power: 6
|
|
here's a quick function that will play back to a specified frame:
PHP Code:
rewind = function (obj, f)
{
obj.onEnterFrame = function ()
{
if (this._currentframe>f) {
this.gotoAndStop(this._currentframe-1);
} else {
delete this.onEnterFrame;
}
};
};
Just call the function, pass the object you want to rewind in, and specify a frame to rewind to. this will rewind the _root:
rewind(_root,1);
cheers,
bret
|