Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

set interval question

Status
Not open for further replies.

tanatos

Programmer
Sep 7, 2003
17
ES
Hi
Is it possible to set that every 10 seconds headplayer goes to next frame and play and in the last frame, after 10 seconds, goes to first frame (a kinda loop, i guess?
thankx
 
First frame:

function timer(){
_root.play();
clearInterval(pause);
};

pause = setInterval(timer, 10000);
stop();

On all the following frames...

pause = setInterval(timer, 10000);
stop();

//10000 is 10 seconds and 60000 would be 1 minute.

Regards,

cubalibre2.gif
 
One more time: thank you, it's what i was searching for.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top