setInterval to Cancel via Button

Hi.

I’m making a powerpoint-like presentation that uses a setInterval every few frames to pause the presentation and then a clearInterval to resume play after 2-4 seconds.

I also would like to pause the movie using a button, which does work when the movie is playing, but does NOT work when a setInterval is in motion. Is there some way I can get a pause button to cancel out the delay and pause the movie manually?

Delay code:

stop();
var nDelayID = setInterval(this, "pause", 1000);
function pause() {
clearInterval(nDelayID);
play();
}

The Pause/Play button is a movieclip with two frames (pause and play label frames)…
Button code:

 on (press) {
    _root.stop();
    nextFrame();
    function pause() {
        _root.clearInterval(nDelayID);
    }
}

SWF file…(because i can’t fit the FLA file here)