# setInterval Loop

**URL:** <https://forum.kirupa.com/t/setinterval-loop/223973>\
**Category:** flash\
**Created:** [April 27, 2007, 6:57am UTC](https://forum.kirupa.com/t/setinterval-loop/223973 "2007-04-27T06:57:03Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mane](https://avatars.discourse-cdn.com/v4/letter/m/b38774/32.png) [@mane](https://forum.kirupa.com/u/mane)\
**Post date:** [April 27, 2007, 6:57am UTC](https://forum.kirupa.com/t/setinterval-loop/223973/1 "2007-04-27T06:57:03Z")

</div>

Hey all,  
I’ve got a question/problem. I’ve got a flashmovie and I want it to play every 15 seconds…so 15 seconds pause. I tried to make it work it with following code:

```auto

stop();

setInterval(this,"startMC",15000); 

function startMC() {
    _root.gotoAndPlay(1);
}

```

And it does work, but after a while it just keeps looping, without the pause of 15 seconds… I think there’s a bug or something. Any of you guys know what to do?

thanks,  
mane.
