3 Replies Latest reply on Aug 7, 2008 12:18 PM by VarioPegged

    Add new menuitem

    Varangian
      how do you add menuitems to an mx.controls.Menu ....

      menume = Menu.createMenu(mycanvas,myMenu,false);
      var items:XMLList = myMenu.children();
      -------
      xml
      <mx:XML id="myMenu">
      <root>
      <menuitem label="Move" />
      <menuitem label="Push" />
      </root>
      </mx:XML>


      I want to add new menuitems to the currently "myMenu" xml.....
      how can I do this? The intellisense doesn't give any indication on what to use and can't find on the net