# setInterval

**URL:** <https://forum.kirupa.com/t/setinterval/121536>\
**Category:** Uncategorized\
**Created:** [September 3, 2004, 5:01pm UTC](https://forum.kirupa.com/t/setinterval/121536 "2004-09-03T17:01:23Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![cki](https://avatars.discourse-cdn.com/v4/letter/c/85f322/32.png) [@cki](https://forum.kirupa.com/u/cki)\
**Post date:** [September 3, 2004, 5:01pm UTC](https://forum.kirupa.com/t/setinterval/121536/1 "2004-09-03T17:01:23Z")

</div>

Hi,

I’m attempting to advance a movie by time not by frame rate so, on frame 34 I have

```auto
function playNext() {
	gotoAndPlay("scene1");
	clearInterval(timerInterval);
}
timerInterval = setInterval(playNext, 5000);

```

with a scene1 label at frame 45, but the movie does not stop at 34, it continues to frame 45 plays to 55, where their is a

```auto
stop()

```

action. At frame 55 it loops back to 45, playing once again to 55 then stops.

What Am I missing?
