Forums

ForumsProgramming Forum

menu

Posted Jan 29, '12 at 3:02pm

ever388

ever388

16 posts

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.

 

Posted Jan 30, '12 at 2:41pm

BlueJayy

BlueJayy

27 posts

Are you using ActionScript 2, or 3?

 

Posted Jan 30, '12 at 2:42pm

ever388

ever388

16 posts

Actionscript 3

 

Posted Jan 30, '12 at 9:10pm

BlueJayy

BlueJayy

27 posts

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?

 

Posted Jan 31, '12 at 10:51am

ever388

ever388

16 posts

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

 

Posted Feb 15, '12 at 9:38am

krisnaisawesome

krisnaisawesome

16 posts

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

 
Reply to menu

You must be logged in to post a reply!