Flash Inquiry
- Started
- Last post
- 5 Responses
- vwsung18t
Does anyone know a good tutorial for playing a movie clip in a flash file backwards and stop at a certain frame?
- unfittoprint0
frameNumber=10;
rewind=function(frameNumber){
if(_currentframe == frameNumber){
gotoAndStop(frameNumber);
clearInterval(rewinLoop);
} else {
gotoAndStop(_currentframe-1);
}
}rewindLoop = setinterval(this, "rewind", 30, frameNumber);
- vwsung18t0
i think i get the script, but what's the 30 for in "rewindLoop = setinterval(this, "rewind", 30, frameNumber);"?
btw, thanks unfit
- unfittoprint0
that's the time interval between each loop. 2000 would mean it would loop every two seconds...
- unfittoprint0
* alert....
erase the frameNumber=10; part...
Just write the desired frame in the setinterval frameNumber parameter...
- vwsung18t0
i just tested it and it works exactly the way i wanted it to, thanks again