MenuBar in Flex: Won't allow past level 3 without skipping

Posted on 2009-12-25
Last Modified: 2012-05-08
When I have a menuBar control in Flex, I added 4 levels of menus. But then, level 2 or 3 just disappears!

What am I doing wrong?
Question by:the_cyman
    1 Comment

    Accepted Solution

    Actually, I solved it. You need to have multiple items PER LEVEL in the menu bar.
    If you have just one item, then this error occurs.
    Here's an example of a working menu bar that goes down many levels. Notice that on each level there are at least 2 items:

              <mx:MenuBar x="200" id="myMenuBar" labelField="@label">
                <menuitem label="MenuItem A">
                    <menuitem label="SubMenuItem A-1" enabled="false"/>
                    <menuitem label="SubMenuItem A-2"/>
                <menuitem label="MenuItem B"/>
                <menuitem label="MenuItem C"/>
                <menuitem label="LEVEL1">
                      <menuitem label="MenuItem B"/>

                    <menuitem label="LEVEL2">
                          <menuitem label="MenuItem B"/>
                          <menuitem label="SubMenuItem LVEL3">
                                        <menuitem label="MenuItem B"/>
                                <menuitem label="Level4">
                                      <menuitem label="MenuItem B"/>
                                      <menuitem label="Level5">
                                      <menuitem label="MenuItem B"/>

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    IT, Stop Being Called Into Every Meeting

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    First things first - Preparation We need all the part for this install and it's much nicer to have them all on hand when you need them so here's what's required. Download Eclipse 3.5 32 bit (I like the Classic flavour) from here. (http://www.e…
    I've been asked to discuss some of the UX activities that I'm using with my team. Here I will share some details about how we approach UX projects.
    In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
    In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor ( If you're interested in additional methods for monitoring bandwidt…

    737 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    21 Experts available now in Live!

    Get 1:1 Help Now