-
HELP PLEASE! AS3: disable buttons events with another button
Ok so I have been trying to get this all day and all I want to do is when I roll over a button it disable the main button that is in its way. I am making a header and it has a button that is lit up and shows a screen but when I roll over another button I want to disable that buttons mouse events. Here is what I have(be aware what I am trying to disable is a movie clip within the button so that is not part of action script)
myButton.addEventListener(MouseEvent.CLICK, onMouseClick);
function onMouseClick(event: MouseEvent):void
{
var request:URLRequest = new URLRequest("http://msn.com");
navigateToURL(request, "_self");
}
myButton2.addEventListener(MouseEvent.ROLL_OVER, onRollOverHandler);
function onRollOverHandler(event: MouseEvent):void
{
mybutton.mouseEnabled = false;
myButton.buttonMode = false;
}
I'm just a Flash n00b that probably has a very simple problem to solve.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|