How does one disable the right-click context menu in Flash?

| | August 11, 2015

I happened to play around with habbo.com social game portal.

It clearly uses Adobe Flash as platform (if you look into the source code of the HTML page). But when you do right mouse click you don’t get the Flash right-click menu popping up!

Does anybody have an idea how this is done?

One Response to “How does one disable the right-click context menu in Flash?”

  1. That’s more a question for StackOverflow, but anyway …

    The idea is to disable the right-click menu in the JavaScript of the page, then pass that event to the underlying Flash application via the ExternalInterface class (ExternalInterface.addCallback("rightClick", rightClickHandlerMethod); or similar).

    An example application with source code can be found on the Another-D-Mention blog in the “Right click and custom context menu in Flash/Flex” article.

Leave a Reply