# Managing Interval

**URL:** <https://forum.kirupa.com/t/managing-interval/171332>\
**Category:** flash\
**Created:** [December 4, 2005, 2:32pm UTC](https://forum.kirupa.com/t/managing-interval/171332 "2005-12-04T14:32:01Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![nburlington](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/nburlington/32/1365_2.png) [@nburlington](https://forum.kirupa.com/u/nburlington)\
**Post date:** [December 4, 2005, 2:32pm UTC](https://forum.kirupa.com/t/managing-interval/171332/1 "2005-12-04T14:32:01Z")

</div>

I’ve got an interval that I can’t clear.

The interval is set in a swf that i’m loading into a mc. The interval targets a function that is sitting in a navigation menu off of the root.

so when i set the interval, i’m using:

```auto
autoSwitch = setInterval (this._parent.menuContainer_mc.menuSwitch, 3000);
//where menuSwitch is the targeted function.

```

then when i want to clear it, i’m adding this to the last line of the menuSwitch function that the interval is calling:

```auto
clearInterval(this._parent.containerClip.autoSwitch);

```

It sets just fine but I can’t clear it.
