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!

setInterval allowed more than once?

Status
Not open for further replies.

NIA2

Technical User
Aug 30, 2006
137
AU
Hi everyone,

Just wondered if it was possible to have more than one setInverval on the one timeline. I have the following code on a keyframe close to the start of a movieclip timeline

stop();
pauseAnim = setInterval (this, "nextFrame", 3000);

I also clear the the interval on the next frame with this:

clearInterval(pausAnim);
play();

...and then the same code at another keyframe toward the end, but the interval isn't working the second time. Is this because two aren't allowed on the same timeline?

Thanks for any help.
 
Actually I just got it to work. Seems the interval delay time was too short so I didn't notice it was actually working.

All okay now - sorry!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top