fire guzzler
New member
in my animations i am only able to have one button that will tell the animation to play or reset. i am using the code
import flash.events.EventDispatcher;
import flash.display.MovieClip;
this.stop();
function startMovie(event:MouseEvent):void {
this.gotoAndPlay(2);
}
myButton.addEventListener(MouseEvent.CLICK, startMovie);
if i enter another one of these codes on a different frame telling the animation to reset or something it will just play the animation as if there where no buttons at all. it dosent pause and wait for you to press the buttons as it did when there was only one.
import flash.events.EventDispatcher;
import flash.display.MovieClip;
this.stop();
function startMovie(event:MouseEvent):void {
this.gotoAndPlay(2);
}
myButton.addEventListener(MouseEvent.CLICK, startMovie);
if i enter another one of these codes on a different frame telling the animation to reset or something it will just play the animation as if there where no buttons at all. it dosent pause and wait for you to press the buttons as it did when there was only one.