Skip navigation
azusa_2012
Currently Being Moderated

Buttons not working...

Nov 5, 2012 5:56 PM

Tags: #flash_cs6

Okay - maybe I/m doing something wrong with where I am putting the code - I notice some people have it all in one place.  I had to gather it from each action frame and put it together here.  Note:I have put stops before every new button so the tweens stop and the next button can be clicked and the next tween plays, etc.  Does it matter that the "PlayFromFrame_## is not the frame it is playing from when I am using labels? 

 

 

APU_Btn.addEventListener(MouseEvent.CLICK, fl_ClickToGoToAndPlayFromFrame_22);

function fl_ClickToGoToAndPlayFromFrame_22(event:MouseEvent):void
{
gotoAndPlay("APU");
}
stop();


AST_Btn.addEventListener(MouseEvent.CLICK, fl_ClickToGoToAndPlayFromFrame_38);

function fl_ClickToGoToAndPlayFromFrame_38(event:MouseEvent):void
{
gotoAndPlay("AST");
}


stop();

 

CO_Btn.addEventListener(MouseEvent.CLICK, fl_ClickToGoToAndPlayFromFrame_24);

function fl_ClickToGoToAndPlayFromFrame_24(event:MouseEvent):void
{
gotoAndPlay("CO");
}


stop();

 

ECS_Btn.addEventListener(MouseEvent.CLICK, fl_ClickToGoToAndPlayFromFrame_37);

function fl_ClickToGoToAndPlayFromFrame_37(event:MouseEvent):void
{
gotoAndPlay("ECS");
}

stop();

 

ENG_Btn.addEventListener(MouseEvent.CLICK, fl_ClickToGoToAndPlayFromFrame_26);

function fl_ClickToGoToAndPlayFromFrame_26(event:MouseEvent):void
{
gotoAndPlay("ENG");
}

stop();

 

MRO_Btn.addEventListener(MouseEvent.CLICK, fl_ClickToGoToAndPlayFromFrame_27);

function fl_ClickToGoToAndPlayFromFrame_27(event:MouseEvent):void
{
gotoAndPlay("MRO");
}

stop();

 

PSA_Btn.addEventListener(MouseEvent.CLICK, fl_ClickToGoToAndPlayFromFrame_40);

function fl_ClickToGoToAndPlayFromFrame_40(event:MouseEvent):void
{
gotoAndPlay("PSA");
}

 
Replies
  • kglad
    72,235 posts
    Jul 21, 2002
    Currently Being Moderated
    Nov 5, 2012 7:21 PM   in reply to azusa_2012

    1.  any error messages?

    2.  are any non-working buttons timeline tweened?

    3.  which buttons don't work?

     
    |
    Mark as:
  • Currently Being Moderated
    Nov 22, 2012 2:00 PM   in reply to azusa_2012

    i had goten sick of needing to do that when i have alot of buttens, so i just started to use AC 2 for those that have alot of buttens it is much easyr because you can put tha action script in the butten itself. just my thoughts though use what u r good with.  if this was helpful plz let me know and click the little " yes" butten.

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points