0 Replies Latest reply on Dec 5, 2007 1:01 PM by jfizer

    Custom context menu without separators?

    jfizer Level 1
      The following code adds two custom items to a context menu. However, they are separated into two different menu sections where I need them to be in only one. What am I missing?

      var cmiDrillIn:ContextMenuItem = new ContextMenuItem("Drill in...", true);
      var cmiDrillOut:ContextMenuItem = new ContextMenuItem("Drill Out...", true);
      cmiDrillIn.addEventListener(ContextMenuEvent.MENU_ITEM_SELECT, contextMenuItem_menuItemSelect);
      cmiDrillOut.addEventListener(ContextMenuEvent.MENU_ITEM_SELECT, contextMenuItem_menuItemSelect);
      cm = new ContextMenu();
      cm.hideBuiltInItems();
      cm.customItems = [cmiDrillIn,cmiDrillOut];
      cm.addEventListener(ContextMenuEvent.MENU_SELECT, contextMenu_menuSelect);