2 Replies Latest reply on Jul 21, 2009 11:27 PM by ShardulSingh

    flex MenuBar

    rcanulla Level 1

      Any thought as to what I am doing wrong?

       

      <?xml version="1.0" encoding="utf-8"?>
      <mx:MenuBar xmlns:mx="http://www.adobe.com/2006/mxml" labelField="@menuitem" dataProvider="{test}">
              <mx:XMLList id="test">
                  <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="MenuItem D">
                      <menuitem label="SubMenuItem D-1" type="radio" groupName="one"/>
                      <menuitem label="SubMenuItem D-2" type="radio" groupName="one" selected="true"/>
                      <menuitem label="SubMenuItem D-3" type="radio" groupName="one"/>
                  </menuitem>
              </mx:XMLList>
      </mx:MenuBar>