0 Replies Latest reply on Apr 13, 2012 7:29 AM by Haroon_ob

    Add Multi Level MenuItems in ContextMenu in Flex 4

    Haroon_ob

      Below is my code. please Help  

       var cmi:ContextMenuItem = new ContextMenuItem("ZoomIn Grpah...", true);  
       cmi.addEventListener(ContextMenuEvent.MENU_ITEM_SELECT, zoomIn);   
      var cmi2:ContextMenuItem = new ContextMenuItem("ZoomOut Grpah...", true); 
        var cmi3:ContextMenuItem = new ContextMenuItem("Layout",true);  
       //Have to add Multiple MenuItem in Layout Menu    
       cm = new ContextMenu();   
      cm.hideBuiltInItems();  
       cm.customItems = [cmi,cmi2,cmi3];