I was wondering, why DisplayObjects in AIR don’t support the MouseEvent.RIGHT_CLICK Event. The only way to implement a right-click-menu seemed to be a NativeMenu. But I needed only the event, not the ugly native-os-menu.
Here is the workaround: Just create a blank NativeMenu and listen for the display event.
var menu:NativeMenu = new NativeMenu(); menu.addEventListener(Event.DISPLAYING, onRightClick, false, 0, true); someSprite.contextMenu = menu;
You can follow any responses to this entry through the RSS 2.0 You can leave a response, or trackback.

