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?
Who is Participating?
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">
            <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"/>
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.