# setInterval active forever?

**URL:** https://forum.kirupa.com/t/setinterval-active-forever/38027
**Category:** flash
**Created:** [December 17, 2003, 1:16pm UTC](https://forum.kirupa.com/t/setinterval-active-forever/38027 "2003-12-17T13:16:38Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![j0se](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/j0se/32/44_2.png) [@j0se](https://forum.kirupa.com/u/j0se)
#### Post date: [December 17, 2003, 1:16pm UTC](https://forum.kirupa.com/t/setinterval-active-forever/38027/1 "2003-12-17T13:16:38Z")

</div>

I have a mc with a setInterval that calls a function repeatedly to load external jpgs

The mc in question is a little movie in a bigger movie, and plays only when you click button A.

Problem: When the mc is playing, you click button B to play a different mc in it’s place. However, the output window begins to throw up ‘path not found’ errors - so the setInterval is still active, even though the mc is no longer visible

Do I need to clear setInterval when I click button B?
