custom-context-menu


Capture right-click events in Flash / Flex (AS 3)

Current Version - 0.7.0

Latest update: September 19, 2012

Javascript and Actionscript 3 code to enable a custom made right-click events in Flash / Flex.

References

This solution is integrated into Adobe Captivate 4 as a default method for capturing right click events in Actionscript3 / Flex based movies.

More information: http://blogs.adobe.com/captivate/2009/01/adding_rightclick_in_captivate_1.html

About The Project

The idea is fairly simple:

1-Use Javascript in the HTML container page to disable the right-click on top of the SWF.

2-Capture the event and pass it to a function that communicates with Flash via the External Interface

3-In Actionscript the function called from Javascript does whatever you need to display your own custom context-menu.

Check out the download section for source code and working demo.

Project Information

Labels:
javascript actionscript flash flex context-menu right click rightclick swf