Hey,
I have a flash demo that I created which is full of tween events and audio. It also has a wait() function that I use a lot - it takes one variable, the number of seconds to wait until proceeding to the next frame in the timeline… I copied it from either this site or another one, I’m not sure. Now I’ve been given the task of adding a global pause and play to the entire thing. Is there a way to code a global function that will pause everything on the screen, including all timelines, all tween’s, all audio, and the wait function until the play button is pressed? I’ve scoured the boards and google and I can’t come up with anything. Any help would be greatly appreciated.
The movie has about 4 movie clip symbols on the stage, and each one contains multiple child movie clips with tons of tween events and audio.
Here’s the wait function (hopefull it helps to see it):
function wait(secs:int):void {
stop();
var myInterval = setInterval(function () {
play();
clearInterval(myInterval);
}, secs*1000); // stop for 2 seconds
}