Simple shit I cant seem to get to work. I cant get a stop script or a button to work properly. Im using actionscript 3, select a frame, go to actions and type in stop(); but nothing happens. Help me..
Welcome to the Newschoolers forums! You may read the forums as a guest, however you must be a registered member to post. Register to become a member today!
If your button is cycling and you want it to stop, there are two ways. The simplest is to put stop(); in the button's timeline on the frame where you want it to stop, or if you have button instance of myButton you could do something like the following in the main timeline:
var stopFrame:int = 1; //the number of the frame
myButton.addEventListener(Event.ENTER_FRAME, onStopFrame);
function onStopFrame(event:Event){
if (event.target.currentFrame == stopFrame){
event.target.stop();
}