Best way to put pauses in a movie?

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:

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

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