This content has been marked as final. Show 5 replies
when a button is pressed you must store the value of the next movieclip that is to play, begin deconstruction of the currently displayed movieclip (if any) and initiate a loop (setInterval() is ideal) that continually checks if the currently displayed movieclip has completed its deconstruction.
when your loop determines that the current movieclip has completed its deconstruction, begin the construction of the next movieclip (whose value is stored is a variable).
I have tried doing what u said using a while currentFrame<totalFrames loop but Flash keeps crashing when I test the movie. I'm new to actionscripting so am not sure which type of loop/function to use to check and then wait for the outloop condition.
Many thanx for your help, I'll try again
for-loops and while-loops execute from beginning to end before anything is updated on-stage. so, they are not useful for your situation.
again, use setInterval() or you could use an onEnterFrame handler.
I've found another way of solving my problem, but will try out your solution for experienc.
Thanx again for your help & time.