TonoNam
asked on
Event Listener that waits for a MovieClip to stop playing.
Is there a way to execute a funcion once a MovieClip finishes playing. In other words, how could I execute a functionn once a movieClip reaches its last frame.
ASKER
I have a function that just animates a bomb. The animation of the bomb consists of about 400 frames and once the animation reaches the 400th frame I am trying to run another function called explode. I have tried writing the function explode () on the time line of bomb_mc right after stop(); on the frame 400 but for some reason the function explode() does not work when I use it in the time line of bomb_mc and it just works when I put in on the main time line.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
I would do this in the simplest way...Putting an Event Listener on the onStop command and then giving it an attribute...But without knowing exactly what function you want its a bit difficult to help