Alex
Alex

Reputation: 13

How to capture RIGHT_CLICK in FlashDevelop?

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

Answers (1)

Marty
Marty

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.

enter image description here

Upvotes: 1

Related Questions