0 Replies Latest reply on Oct 13, 2009 10:52 PM by Hasan360

    Accessing MenuBar items with Alt (&) shortcuts....

    Hasan360

      How do I access my menubar items with alt shortcuts... like &File... &System.. or E&xit. It gives error at compile time when I try to do so...

       

      <?xml version="1.0" encoding="utf-8"?>
      <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">

       

          <mx:XMLListCollection id="myMenuData">
              <mx:XMLList>
                  <menuitem label="&System">
                      <submenu label="&Preference"/>
                      <submenu label="Job Set&ups">
                          <submenu label="&Importer Setup"/>
                          <submenu label="Job &Type Setup"/>
                          <submenu label="&Collectorate Setup"/>
                          <submenu label="Job &Description Setup"/>
                      </submenu>
                      <submenu label=" " type="separator"/>
                      <submenu label="Exit"/>
                  </menuitem>
              </mx:XMLList>
          </mx:XMLListCollection>
         
          <mx:MenuBar id="myBar" dataProvider="{myMenuData}" labelField="@label"/>

       

      </mx:Application>

       

      It gives the following error:

       

      "The reference to entity "System" must end with the ';' delimiter."

      "The reference to entity "Preference" must end with the ';' delimiter."

       

      Is there any other way in flex to do the same.... ???

       

      regards,

       

      Abul Hasan Lakhani.

      MCTS, MCPD