Double check the ContextMenuItem constructor in the docs: http://livedocs.adobe.com/flex/3/langref/flash/ui/ContextMenuItem.html#ContextMenuItem()
- Daniel Freiman On Wed, Jun 25, 2008 at 3:36 PM, linusgraybill <[EMAIL PROTECTED]> wrote: > How on earth do you control whether or not a line separates custom > ContextMenuItems? I would like to have two items with no line between > them, and then a line, and then one more item. The code below is > producing a line between every menu item. > > Many thanks! > Linus > > [Bindable] > private var EventLogMenu:ContextMenu; > > private function init():void { > var EventLogMenu:ContextMenu = new ContextMenu; > > EventLogMenu.addEventListener(ContextMenuEvent.MENU_SELECT, > contextMenu_menuSelect); > EventLogMenu.hideBuiltInItems(); > > var deviceProp:ContextMenuItem = new ContextMenuItem("View Device > Properties", true); > > deviceProp.addEventListener(ContextMenuEvent.MENU_ITEM_SELECT, > contextMenuItem_menuItemSelect); > > var eventProp:ContextMenuItem = new ContextMenuItem("View Event > Properties", true); > > eventProp.addEventListener(ContextMenuEvent.MENU_ITEM_SELECT, > contextMenuItem_menuItemSelect); > > var ping:ContextMenuItem = new ContextMenuItem("Ping", true); > > ping.addEventListener(ContextMenuEvent.MENU_ITEM_SELECT, > contextMenuItem_hello); > > EventLogMenu.customItems.push(deviceProp, eventProp, ping); > this.contextMenu = EventLogMenu; > } > > >