# Restart SetInterval

**URL:** <https://forum.kirupa.com/t/restart-setinterval/64633>\
**Category:** flash\
**Created:** [September 18, 2004, 5:26am UTC](https://forum.kirupa.com/t/restart-setinterval/64633 "2004-09-18T05:26:46Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![NovemberRain](https://avatars.discourse-cdn.com/v4/letter/n/73ab20/32.png) [@NovemberRain](https://forum.kirupa.com/u/NovemberRain)\
**Post date:** [September 18, 2004, 5:26am UTC](https://forum.kirupa.com/t/restart-setinterval/64633/1 "2004-09-18T05:26:46Z")

</div>

I’ve used a function to activate a movieclip inside another one. The function is being called by setInterval.

```auto
  
function openwindow (){
 if (_root.room:track == 2){
  clearInterval (intId);
 _root.room.windowleft.gotoAndPlay("open");
 _root.room.windowright.gotoAndPlay("open");
 }
}
intId = setInterval (_root.openwindow, 100);

```

After the condition met that

```auto
 
 if (_root.room:track == 2){
  clearInterval (intId);
 

```

I’ve clear the interval. But the movie contains a reply button. How can i restart the intervalID i’ve cleared to make the movie looping.
