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

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


      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">
                  <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 label=" " type="separator"/>
                      <submenu label="Exit"/>
          <mx:MenuBar id="myBar" dataProvider="{myMenuData}" labelField="@label"/>




      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.... ???




      Abul Hasan Lakhani.

      MCTS, MCPD