# setInterval allowed more than once?

**URL:** <https://forum.kirupa.com/t/setinterval-allowed-more-than-once/215951>\
**Category:** flash\
**Created:** [February 12, 2007, 2:01pm UTC](https://forum.kirupa.com/t/setinterval-allowed-more-than-once/215951 "2007-02-12T14:01:30Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![gwh](https://avatars.discourse-cdn.com/v4/letter/g/bbe5ce/32.png) [@gwh](https://forum.kirupa.com/u/gwh)\
**Post date:** [February 12, 2007, 2:01pm UTC](https://forum.kirupa.com/t/setinterval-allowed-more-than-once/215951/1 "2007-02-12T14:01:30Z")

</div>

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 again for any help.
