0 Replies Latest reply on Sep 6, 2009 5:34 PM by beenetto

    Get MenuItem parent in flex

    beenetto

      Hi is there a way to get a parent item of a submenu item in flex?

       

       

      this is what i have set up. event.item doesn't have a parent property only in AIR

       

      var myMenu:Menu = Menu.createMenu(null, getMenuStructure(), true);


      myMenu.addEventListener(MenuEvent.ITEM_CLICK, selectOpr);


      private function selectOpr(event:MenuEvent):void {


       

      }

       

      thx