ForumsProgramming Forummenu

5 1388
ever388
offline
ever388
17 posts
20

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.

  • 5 Replies
BlueJayy
offline
BlueJayy
27 posts
30

Are you using ActionScript 2, or 3?

ever388
offline
ever388
17 posts
20

Actionscript 3

BlueJayy
offline
BlueJayy
27 posts
30

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?

ever388
offline
ever388
17 posts
20

there are 10 frames and im only trying to move the stage along.

krisnaisawesome
offline
krisnaisawesome
16 posts
20

actionscript 3 is hard to understand. It is very different from actionscript 2

Showing 1-5 of 5