Boolean to the rescue 
If you want the animation to play through to the end no matter when the button is pressed, create a variable with a boolean value(true or false). You can check that variable at the end of your animation to tell it to replay or do something else. Example....
variable...
button....
Code:
myButton.onRelease=function(){
myLoop=false;
}
Last frame of animation.....
Code:
if(myLoop==true){
//variable set to true loops the animation
gotoAndPlay(1);
}else{
//variable set to false, do something else
gotoAndStop(65);
}
Bookmarks