[Flash8: AS 2.0] Need to stop/pause script execution (not timeline)

I have an animation which resides purely in AS 1.0/2.0 which dynamically loads a group of images into movie clips and stacks them on the stage.

I then changes the alpha value of the image on top slowly revealing the image beneath creating a “fading transition” effect.

It works like a charm, but I need to pause the animation at certain intervals.

Since the animation does not utilize the timeline, using the stop() function doesn’t work.

I’ve tried many, many itterations of the stop() function with no success.

I have even imbedded the first swf into a 2nd movie object hoping to command more control, but it doesn’t work.

Quick outline of what my code looks like:

function loadImgs(){

make movieclips and insert images

}

for (var i = 1; i <= 40; i++){

change alpha of top image slowly revealing the one beneath

}

I’ve tried using the setInterval() but it only delays the execution of the command while the loop continues.

I’m looking for a way to “pause” the entire code execution for an amount of time, then resume. Or perhaps a more elegant solution which achieves the same result :slight_smile:

Thanks in advance,
Steven