2
\$\begingroup\$

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?

\$\endgroup\$
4
\$\begingroup\$

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.

\$\endgroup\$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.