Skip to main content
Participant
April 30, 2012
Question

Menu button flickering

  • April 30, 2012
  • 2 replies
  • 850 views

I made a menu bar with 6 items. The first 5 work just fine, but the last one is giving me trouble.

When a button is clicked the user is forwarded to a different webpage, but the 6th button doesn't do anything. I have a mouse "over" animation on all the buttons and it seems that when I mouse over the last button the animation is just flickering. But when I move the mouse over the text it works like it is supposed to, i've tried changing hte hit box but it doesn't seem to do anything.

Also when the button is clicked it just continously flickers.This is the code for the menu:

stop();

homebtn.addEventListener(MouseEvent.CLICK, fl_ClickToGoToWebPage_1);

eventbtn.addEventListener(MouseEvent.CLICK, fl_ClickToGoToWebPage_2);

csbtn.addEventListener(MouseEvent.CLICK, fl_ClickToGoToWebPage_3);

mediabtn.addEventListener(MouseEvent.CLICK, fl_ClickToGoToWebPage_4);

contactbtn.addEventListener(MouseEvent.CLICK, fl_ClickToGoToWebPage_5);

sponsorbtn.addEventListener(MouseEvent.CLICK, fl_ClickToGoToWebPage_6);

function fl_ClickToGoToWebPage_1(event:MouseEvent):void

{

 

          navigateToURL(new URLRequest("index.html"), "_self");

}

function fl_ClickToGoToWebPage_2(event:MouseEvent):void

{

 

          navigateToURL(new URLRequest("../../events/"), "_self");

}

function fl_ClickToGoToWebPage_3(event:MouseEvent):void

{

 

          navigateToURL(new URLRequest(../../cs/"), "_self");

}

function fl_ClickToGoToWebPage_4(event:MouseEvent):void

{

 

          navigateToURL(new URLRequest("../../media/"), "_self");

}

function fl_ClickToGoToWebPage_5(event:MouseEvent):void

{

 

          navigateToURL(new URLRequest("../../contact/"), "_self");

}

function fl_ClickToGoToWebPage_6(event:MouseEvent):void

{

 

          navigateToURL(new URLRequest("../../sponsors/"), "_self");

}

Thank you! I'm not sure how to post the .swf or .fla but I can email it if needed.

This topic has been closed for replies.

2 replies

Ned Murphy
Legend
April 30, 2012

Chnaces are it has to do with the makeup of the button.  Something inside of it is making it behave as if the mouse is going over and off it constantly.  First try changing your textfield to be unselectable static text if it is not already.  If that doesn't resolve it, then see if you can find any holes in the rollover state that might make the cursor be off of the object in the over state.

MpressivAuthor
Participant
April 30, 2012

I just checked that and the text is static like the other buttons. There is nothing in the roll over state that seems odd either, i'm sure im missing something though.

MpressivAuthor
Participant
April 30, 2012

oops forgot a quotation on the cs page