• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 642
  • Last Modified:

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

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?
0
the_cyman
Asked:
the_cyman
1 Solution
 
the_cymanAuthor Commented:
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">
        <mx:XMLList>
            <menuitem label="MenuItem A">
                <menuitem label="SubMenuItem A-1" enabled="false"/>
                <menuitem label="SubMenuItem A-2"/>
            </menuitem>
            <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>
                                  <menuitem label="MenuItem B"/>
                            
                            </menuitem>
               
                            
                      </menuitem>
                               
               
                </menuitem>
            </menuitem>
        </mx:XMLList>
    </mx:MenuBar>
0

Featured Post

Automating Your MSP Business

The road to profitability.
Delivering superior services is key to ensuring customer satisfaction and the consequent long-term relationships that enable MSPs to lock in predictable, recurring revenue. What's the best way to deliver superior service? One word: automation.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now