I have a flash animation that using action script at the end to stop the animation and has a button for the user to click and replay at the animation. When they click and replay the animation the last scenes that were on the screen don't disappear as the animation restarts. My button has an instance name of replay_btn. Any suggestions?
my action script code is
stop();
import flash.events.MouseEvent; function onClick(event:MouseEvent):void { gotoAndPlay(1); } replay_btn.addEventListener(MouseEvent.CLICK, onClick);
This has been answered now. It seem like there was a bug in flash causes the last scenes to hang while replay the start of the animation. The workaround was to make the replay button go forward one frame to a blank white frame and then direct it back to the start.