RE: [flexcoders] Cant empty context menu- previous answers don't work...
public static const MIN_DATE:Date = new Date(1500,1,1); public static const MAX_DATE:Date = new Date(2999,12,31);
Re: [flexcoders] Cant empty context menu- previous answers don't work...
Thanks Doug, I'll stop trying to make this work and change the interface idea. Flex team: this seems like a collision between proprietary ideas of how to build a framework and Open Source culture. Obviously a developer ought to be able to do whatever he likes with right-click events. John Doug McCune wrote: This is specifically (and has always been) impossible. You cannot ever get rid of those context menu items. As in never ever ever. The best you can hope for is supressing the context menu and replacing it with your own, which is sort of possible with a javascript hack I believe (google stuff about javascript flash context menu, I think Dan of polygeek.com was doing some tests trying to figure it out). Doug On Tue, Jan 13, 2009 at 4:51 PM, john fisher j...@jpfisher.net wrote:
Re: [flexcoders] Cant empty context menu- previous answers don't work...
well since nobody had time to answer yet, I kept digging. here's one bug: if you add Settings as part of the string which forms your custom menuitem label, not just the whole String which could collide with the Settings menu, but part of a custom string, it won't show at all in the menu, and no error is thrown. Parameters is acceptable, but thats all I know one way or the other. see Alex's previous comment: http://tech.groups.yahoo.com/group/flexcoders/message/125171 this code definitely does NOT clear the two standard menuitems, Settings... and About... nor the debugger-player's debugger and show redraw regions var menuItem:ContextMenuItem = new ContextMenuItem(Our switch: Change Parameters); menuItem.addEventListener(ContextMenuEvent.MENU_ITEM_SELECT,createParamPopUp); var customContextMenu:ContextMenu = new ContextMenu(); customContextMenu.hideBuiltInItems(); customContextMenu.customItems.push(menuItem); Though it does add an item, and run the associated function. Has anyone cleared the *whole* contextMenu out? or Taken control of mouse-rt-click events so as to avoid the standard contextMenu? John
Re: [flexcoders] Cant empty context menu- previous answers don't work...
This is specifically (and has always been) impossible. You cannot ever get rid of those context menu items. As in never ever ever. The best you can hope for is supressing the context menu and replacing it with your own, which is sort of possible with a javascript hack I believe (google stuff about javascript flash context menu, I think Dan of polygeek.com was doing some tests trying to figure it out). Doug On Tue, Jan 13, 2009 at 4:51 PM, john fisher j...@jpfisher.net wrote: well since nobody had time to answer yet, I kept digging. here's one bug: if you add Settings as part of the string which forms your custom menuitem label, not just the whole String which could collide with the Settings menu, but part of a custom string, it won't show at all in the menu, and no error is thrown. Parameters is acceptable, but thats all I know one way or the other. see Alex's previous comment: http://tech.groups.yahoo.com/group/flexcoders/message/125171 this code definitely does NOT clear the two standard menuitems, Settings... and About... nor the debugger-player's debugger and show redraw regions var menuItem:ContextMenuItem = new ContextMenuItem(Our switch: Change Parameters); menuItem.addEventListener(ContextMenuEvent.MENU_ITEM_SELECT,createParamPopUp); var customContextMenu:ContextMenu = new ContextMenu(); customContextMenu.hideBuiltInItems(); customContextMenu.customItems.push(menuItem); Though it does add an item, and run the associated function. Has anyone cleared the *whole* contextMenu out? or Taken control of mouse-rt-click events so as to avoid the standard contextMenu? John