PDA

View Full Version : set time (MX) question



Eyeball
May 8th, 2003, 09:25 PM
hey everybody

i have a about 20 frame animation but what I want to do is to find out is there a way to set a time to play a certain frames i.e when movie starts it plays only 10 frames and then stops for a minute then after 1 minute it continues from frame 10 to frame 20 and then again stops for one minute and it starts over again

Thx so much

nunomira
May 9th, 2003, 12:35 AM
you'll achieve that easilly with setInterval()
I suggest you read senocular's article here (http://www.umbc.edu/interactive/flash/tutorials/showpage.php?p=setInterval)

but it's something like this:


stop();
here = this;
myInterval = setInterval(function () {
here.play();
clearInterval(myInterval);
}, 2000);

this code, attached to a frame, will stop the playhead for 2 seconds;