How to prevent the opening of the popup submenu of mx:MenuBar during its events mouseOver/rollOver?

I'm using a component mx:MenuBar with the xml data to a menu. The basic behavior as I see is, first by clicking on the top level menu item (IE on the horizontal bar), pop-up windows submenu opens. Then without clicking anywhere, if I have the mouse on / roll on the horizontal menu bar, the pop-up menus under other top level menus opens.

This behavior seems to be incompatible. The pop-up submenus should open either on click any element of top-level menu (menu bar horizontally) or only on mouse over / roll of the menu bar.

I want the pop-up submenus to open only when the click on the top-level menu (menu bar horizontally). So I added event handlers for the passage of the mouse as well as the rollOver events (I don't know which event gets actually produced on hovering over the menu bar horizontally). In the case of managers, I called the Event.preventDefault () method to prevent the default behavior (ie the opening of pop-up submenus).  But nothing works. I felt like I have no control over it.

How to remove the default behavior and open the pop-up submenus only on the click event of the menu bar?

Bar menus with no user action:

1.JPG

Menu after clicking the 'Flex ': menu bar

2.JPG

Bar menu after clicking the 'Flex' menu and hovering above the other top-level menus in the horizontal bar:

3.JPG

All,

Go through the link mentioned to find the answer below.

f-mxmenubar-Flex-during-its-MOU http://StackOverflow.com/questions/15532911/How-to-prevent-the-Opening-of-pop-up-submenu-o

This solution works perfectly like what I expected.

Tags: Adobe Open Source

Similar Questions

  • How to prevent the popup dialog closes when you click the commandbutton

    Hello

    The application has a popup with the dialog box Cancel to display a table. Users could select the lines using a checkbox and click a CommandButton to backend processing.

    It displays a message (using addMessage) when he chose nothing.

    I would like to have the popup rest so the user could correct their action, but ADF automatically close the popup.

    Is there a way to avoid this?

    If I put the property AutoCancel to false, the popup rest (or rather re-posted), but the message window is hidden, which is defeat it purposes.

    I saw a discussion archived since 2008, but it doesn't have an answer, that's why I opened this thread.

    Kind regards.

    DjG

    Tried to set partialSubmit for af:button be true?

  • How to prevent the add-on compatibility checking whenever he opens Firefox?

    How to prevent the add-on compatibility checking whenever he opens Firefox?

    Which can be a problem with the compatibility.ini file in the Firefox profile folder.
    Try to rename (or delete) the file compatibility.ini in the profile folder of Firefox to see if that helps.

    You can use this button to go to the Firefox profile folder currently in use:

    Alternatively, you can check for problems with preferences.

    Delete possible user.js and files numbered prefs-# .js and rename (or delete) the file prefs.js to reset all the prefs by default, including the prefs set via user.js and pref which is no longer supported in the current version of Firefox.

  • How to prevent the appearance of "Failed to open Document" "Please check if you have read permissions for the file above.  This problem occurs when I try to convert a word in a PDF doc.

    How to prevent the appearance of "Failed to open Document" "Please check if you have read permissions for the file above? This problem occurs when I try to convert a word in a PDF doc.

    Hi [email protected] ,

    Please try to follow the steps mentioned in this thread with a similar problem: Impossible to open the document. Please check if you have read permissions for the above file.

    Also, let us know the acrobat version you have and the version of the OS on your system.

    Let us know if that helps.

    Concerning
    Sarojini

  • How to prevent the user open and play a flash game on multiple browser windows at the same time?

    Hi guys,.

    I made a game as the same site: http://www.Netent.com/games/table-games/Texas-Holdem-Pro-series/

    Anyone know how to prevent the user opened and play the game on multiple windows browser both?

    I used the command of flash to embed flash into a page aspx and connection to sql server

    Someone help me, please.

    p/s: Sorry, my English is not good

    You can use localconnection.

  • How to stop the Popup Adobe when printing?

    I am constantly creating PDF files using Adobe Acrobat Professional 7.0. Create from several programs: Office Word, Excel, Paint, Etc. as well as AutoCADD.  I create them using Adobe as a printer, so printing to PDF. Once the PDF has been created since the other program via Adobe printing, the new PDF opens for viewing. I'm ok with that; However I then click on another program and after a few seconds the PDF file appears again. Even if I close a few seconds later, he appears again. When I print several sheets of a program, I jump back and the popup function slows me down up to big-time or cause me to spoil the files I work with.

    How to stop the Popup from Adobe?

    You must check the program setting Distiller, the Adobe PDF printer properties and Acrobat PDF conversion settings and disable the "view PDF results.

  • How to prevent the creation of 15000 files for 300 MB each day Firefox

    Firefox creates files of 'file' in C:\Users\LeRicain\AppData\Local\Mozilla\Firefox\Profiles\dnm04rk5.default\cache2
    There are about 10,000 and 20,000 files I have to remove to get about 300 MB of space each day

    How to prevent the creation of these files in Firefox

    Here are the files from cache. Basically, it takes Web sites that access you a lot and records bits of them so they'll load faster the next time you visit them. FOR EXAMPLE if you visit Google.com much, Firefox will save some elements of this page in the cache so that the next time visit you Google.com, it will not have to re - download.

  • lovely better does not work with windows vista home Premium what another program removes LSO and HOW to prevent the trackers?

    Question
    better privacy does not work with windows vista home Premium that another program removes LSO and HOW to prevent the trackers? Edit
    Details

    In current versions of Flash you can also do this via the control panel.

    • Control Panel > Flash Player, click on remove and erase data
  • How to prevent the scrambling of text as you type

    How to prevent the scrambling of text as you type

    Hello

    1. What do you exactly mean by interference?

    2 does this happen on all applications such as word, Notepad?

    I suggest you to follow these steps and check if that helps:

    Method 1:
    Start the computer in safe mode and check if the same problem occurs:
    http://Windows.Microsoft.com/en-us/Windows-Vista/start-your-computer-in-safe-mode

    Method 2:
    Try to perform the clean boot and check if it helps:
    http://support.Microsoft.com/kb/929135

    NOTE: When you are finished troubleshooting, make sure that restore you the computer mode normal startup such as suggested in step 7 of the above article.

    Check if that helps.

  • How to prevent the automatic updates

    How to prevent the automatic updates which closes the window and restart the computer in Windows 7, Vista OP?  I'm usually right in the middle of something when this happens.

    Hello

    change how to get updates to allow you to choose what you and when you install to stop it happening again

    http://www.bleepingcomputer.com/tutorials/tutorial140.html

    Download updates but let me choose whether to install them - if you select this option, Windows will download the updates on your computer, but not install them automatically. If you want to install updates, then you must install them manually. You should only select this option if you have a reason to not install updates automatically. Only advanced users should use this option.

    Check for updates but let me choose whether to download and install them - if you select this option, you'll be alerted when there are new updates available for download and install. You can then choose to download and install the updates that you want. This option should really be reserved for people who know exactly which updates they need, or those who have little access to the Internet.

  • How to prevent the faye error message when I try to install my printer 6510 throu hpofficejet

    How to prevent the faye error message when I try to install my hpofficejet printer 6510 throu on windows 7

    Marcia J Outten-Robinson

    Hi outten7429,

    Follow the steps outlined in the document below.

    http://support.HP.com/us-en/document/c02266980

  • How to prevent the OSB 11g to change original prefixes xmlns?

    Hello


    Could someone tell me how to prevent the modification of the xml namespace that I have carefully specified in the WSDL and XSD OSB file?

    By example, if I deploy wsdl file beginning with

    <soap:definitions xmlns:soap="http://schemas.xmlsoap.org/wsdl/"> ...

    Then I get to the BSO for the same wsdl wsdl file is something like

    <WL5G3N0:definitions xmlns:WL5G3N0="http://schemas.xmlsoap.org/wsdl/"/>


    He renames "SOAP" to "WL5G3N0".  This name change similar to most of the other namespace in the WSDL and XSD files xml prefixes.  This OSB causing to use for a purpose limited in our environment.  We simply turn this renaming feature off (or find different technologies of accommodation... ).


    So I hope it's possible to disable and someone knows how, in the community of Oracle users.  Could someone tell me if it is possible and how to disable the prefix renaming in OSB?


    Thank you

    or at least there is no known way to get that off, right?

    I'm not an employee of the Oracle, so I can't say with 100% confidence. I don't know a way, and I'm sure that the path does not exist.

    thinking of using 'engine for stateful service' Oracle SOA for this is very bad...

    It's not so bad. If you do not service calls in the Middle, then BPEL is not to dehydrate State, making it more or less stateless.

    DataContractSerializer seems to be picky and all pending schema corresponding to certain prefix text

    It's weird, but the code generators are a common source of bugs in SOA :-)

    Good luck!

    Vlad @ genericparallel.com

  • How to prevent the squishing text stacked mode smartphone

    Hello

    How to prevent the squishing of text stacked for smartphone. Not sure if I use the right termonology. In any case, when my < Hello > menu resizes to view smartphone, my menu link throws up in the rest of my text on that line. I am at a loss on what to do about it. Any CSS help would be appreciated.

    http://cupcakemary.skeeterz71.com/_cm_mockup/

    menu-stack.png

    Give your position more line height.  Adjust as required.

    H1 {line-height: 55px}

    Nancy O.

  • How to run the VI developed in labVIEW 2011 in its previous versions

    Hi all

    I am currently using LabVIEW 2011 in my PC at home.

    But, all my school's computers are installed with LabVIEW 2010 and 2010 SP1.

    How to run the VI developed in LabVIEW 2011 in its previous versions?

    Is there any conveter why?

    Concerning

    Prasanth T

    Open the VI in LabVIEW 2011 and use the file menu option, save for the previous Version.

  • How to prevent the charging Panel whenever it is open

    Hello.

    I made an extension of Photoshop with Extension Builder 3.

    My extension works well, but everytime I open the Panel, the extension is reload... How to prevent this?

    Certainly with the < lifeCycle > but I do not know how...

    Thank you.

    You can use the persistence feature in photoshop. The persistent aims to force it to not reload the HTML extension when it is closed or hidden. Photoshop has provided persistent since the version of 14.2.

    To make your HTML in Photoshop extension

    • Upgrade Photoshop version 14.2 or later version
    • Send the event com.adobe.PhotoshopPersistent to the HTML extension to Photoshop to persistent demand:

    function Persistent(inOn) {

       if(inOn) {

           var event =newCSEvent("com.adobe.PhotoshopPersistent","APPLICATION");

       }else{

           var event =newCSEvent("com.adobe.PhotoshopUnPersistent","APPLICATION");

       }

       event.extensionId = gExtensionId;

       csInterface.dispatchEvent(event);

    }

    Persistent(true);// persistent to prevent extension from unloading

    Persistent(false);// turn off persistent feature

Maybe you are looking for