A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Mouse Over Menu

  1. #1
    Member
    Join Date
    Apr 2011
    Posts
    42

    Mouse Over Menu

    Hey All,

    I'd image the answer to this question is very simple.

    I have a menu inside flash. It's a drop down menu and it only shows options when it is hovered over with the mouse.

    Frame 1 is the default menu.
    Frame 2 is the dropped down menu.

    Code:
    function ShowMenu (event:MouseEvent):void
    {
    MenuButton.gotoAndPlay (2);
    }
    
    function HideMenu (event:MouseEvent):void
    {
    MenuButton.gotoAndPlay (1);
    }
    On the menu I want to have normal buttons but the problems is when I move the mouse over the buttons (Which are ontop of the menu) it thinks I want to hide the menu.

    How would I get around this?

  2. #2
    Senior Member
    Join Date
    Jul 2008
    Posts
    391
    Are the buttons in the display list of the menu? They should be, then you add the MouseEvent.ROLL_OVER and ROLL_OUT listeners to the menu.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center