Reputation: 13
I wish to add an event listener for the MouseEvent.RIGHT_CLICK
event in FlashDevelop.
In Flash CS6's editor, I can simply do:
stage.addEventListener(MouseEvent.RIGHT_CLICK, onMouse);
But MouseEvent.RIGHT_CLICK
does not seem to exist in FlashDevelop.
I tried 'disabling' the context menu:
stage.showDefaultContextMenu = false;
But still to no avail. How can I get this to work?
Upvotes: 1
Views: 64
Reputation: 39458
Make sure your FlashDevelop project settings target a Flash Player version high enough to support the RIGHT_CLICK
event; that being at least Flash Player 11.2.
Upvotes: 1