# clearInterval

**URL:** <https://forum.kirupa.com/t/clearinterval/182909>\
**Category:** Uncategorized\
**Created:** [March 22, 2006, 11:29am UTC](https://forum.kirupa.com/t/clearinterval/182909 "2006-03-22T11:29:25Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![pensamente](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/pensamente/32/1208_2.png) [@pensamente](https://forum.kirupa.com/u/pensamente)\
**Post date:** [March 22, 2006, 11:29am UTC](https://forum.kirupa.com/t/clearinterval/182909/1 "2006-03-22T11:29:25Z")

</div>

this seams to be a simple thing to do…but for some reason it’s not working  
i’ve a mc in timeline (quintaSlide):  
\_root.introAnim.quintaSlide

inside this one i set a interval:  
var tempoQ:Number = setInterval(goframe, 6000);

how can i clear this interval from \_root?!

---

<div class="post-metadata">

**Author:** ![kookaburra](https://avatars.discourse-cdn.com/v4/letter/k/f475e1/32.png) [@kookaburra](https://forum.kirupa.com/u/kookaburra)\
**Post date:** [March 22, 2006, 11:32am UTC](https://forum.kirupa.com/t/clearinterval/182909/2 "2006-03-22T11:32:34Z")

</div>

try…  
**clearInterval(\_root.introAnim.quintaSlide.tempoQ)**

if not then try…  
**\_root.tempoQ = setInterval(goframe, 6000);**  
and **then clearInterval(\_root.tempoQ)**

---

<div class="post-metadata">

**Author:** ![pensamente](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/pensamente/32/1208_2.png) [@pensamente](https://forum.kirupa.com/u/pensamente)\
**Post date:** [March 22, 2006, 11:57am UTC](https://forum.kirupa.com/t/clearinterval/182909/3 "2006-03-22T11:57:36Z")

</div>

pffff…  
thx, it works!  
I was doing that, but this happen me a lot, when calling the clearInteval before I had a “play” that moved the mc introAnim to another frame (where no longer existes the quintaSlide) so the clear would find nothing o clear…

just change the order of the code and it works  
😉
