# Help with setInterval

**URL:** https://forum.kirupa.com/t/help-with-setinterval/289046
**Category:** Uncategorized
**Created:** [May 25, 2009, 5:00pm UTC](https://forum.kirupa.com/t/help-with-setinterval/289046 "2009-05-25T17:00:49Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![dlinville](https://avatars.discourse-cdn.com/v4/letter/d/65b543/32.png) [@dlinville](https://forum.kirupa.com/u/dlinville)
#### Post date: [May 25, 2009, 5:00pm UTC](https://forum.kirupa.com/t/help-with-setinterval/289046/1 "2009-05-25T17:00:49Z")

</div>

Hello,  
I am new to using setInterval and I cannot get the clearInterval command to work. I have a panel that is tweening down into the stage about 4 seconds after the movie loads and then I do not want it to happen again. Right now the panel continues to tween in everytime I close it. Right now, the clearInterval is not working.

var down:Boolean;  
var currentInterval:Number;  
down=false;

function autoDown() {  
if (down!=true){  
Tweener.addTween(mcMain,{\_x:0,\_y:30,time:1,transition:“strongEaseOut”});  
Tweener.addTween(back\_mc,{\_blur\_blurY:0,\_blur\_blurY:40, time:1});  
mcMain.mcMovie.my\_FLVPlybk.play();  
down=true;  
downOnce=true;  
}  
}  
currentInterval=setInterval(autoDown,2000);  
stopInterval=function(){  
if (down!=false){  
clearInterval(intervalID);  
}  
}
