so i was making a menu for a game and i was typing in the script.button.addEventListener(MouseEvent.CLICK, click_1);function click_1(event:MouseEvent){ gotoAndStop(10);}and i couldnt figure out why this wasn't working. if i put in the trace it would say that it had been clicked but it wouldn't move to the frame.
Are you using ActionScript 2, or 3?
Actionscript 3
Seeing as you can trace and prove that the button is recognizing that it's being pressed, there must be something wrong with the gotoAndStop. Do you have a frame 10? Are you actually trying to make something other than the stage go to frame 10?
there are 10 frames and im only trying to move the stage along.
actionscript 3 is hard to understand. It is very different from actionscript 2
You must be logged in to post a reply!