2 Replies Latest reply on May 6, 2011 11:20 AM by Flex harUI

    How to response My Menubar's select event?(the first level item.)

    DuoMi


      add the EventListener to my Menubar :menu.addEventListener(MenuEvent.ITEM_CLICK,onClickMenuButton);

       

      dataProvider:

       

      <menuitem label="button1">
      <menuitem label="button1_1"/>
           </menuitem>
      <menuitem label="button2"/>

      <menuitem label="button3"/>

       

      Now,when  I click the button1_1 ,  function "onClickMenuButton"   is run.....

       

      but , when I click  button2 or button3,   nothing  happen~

       

      can you tell me: how to response the bt2 and bt3 ( and trace("you clicked button2") or trace(" you clicked button3") )