# Best way to put pauses in a movie?

**URL:** https://forum.kirupa.com/t/best-way-to-put-pauses-in-a-movie/195533
**Category:** flash
**Created:** [August 1, 2006, 1:38pm UTC](https://forum.kirupa.com/t/best-way-to-put-pauses-in-a-movie/195533 "2006-08-01T13:38:31Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![pixlemech](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/pixlemech/32/2651_2.png) [@pixlemech](https://forum.kirupa.com/u/pixlemech)
#### Post date: [August 1, 2006, 1:38pm UTC](https://forum.kirupa.com/t/best-way-to-put-pauses-in-a-movie/195533/1 "2006-08-01T13:38:31Z")

</div>

Hi there. I’m fairly inexperienced with Flash. I’m doing looping presentation for a kiosk, and there are 3 or 4 times when I want the presentation to pause for 5 seconds or so each time. I’m using this fairly simple function for a pause:

```auto
function wait() {
stop();
var myInterval = setInterval(function () {
play();
clearInterval(myInterval);
}, 3*1000);
}

```

I put this in it’s own layer. When I at first called it from a keyframe in another layer by doing

```auto
wait()

```

on it, it seemed to work fine. Then, I needed another pause so I did the same thing a bit later on in another keyframe (in the same layer).

But the second instance of the function call seems to have no effect. Why is this? Am I placing the scripts in the wrong place, or is there a better way to add pauses to a movie?

Note this has to export as QuickTime so it has to be compatible with F5.

Any help is greatly appreciated!

Tom
