Right Click in AS3: Custom context menus

Remove context menus, or simply responding to "right click" the mouse is a possibility of the Flash Player directly from ActionScript code is not allowed even in CS3. This feature would be attractive for both games for RIA applications. Uza Paulius has proposed a solution for ActionScript 3 (AS3) that works in tandem with Javascript. This "patch" is still in testing it depends on the browser and the Flash Player installed. You can help by testing application demo here .
It was also an aperitif "project" on Google Code :

The idea is fairly simple:

1-Use Javascript in the HTML container page to disable right-click on the 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.

There are no comments for this post

Leave a comment

XHTML TAG PERMIT: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> INSERTION CODE:
 <pre></pre> // blocco generico <code></code> // blocco generico [cc_actionscript][/cc_actionscript] // Actionscript [cc_actionscript3][/cc_actionscript3] // Actionscript 3 [cc_css][/cc_css] // CSS Style Sheet [cc_html][/cc_html] // HTML [cc_js][/cc_js] // Javascript [cc_objc][/cc_objc] // Objective-C [cc_php][/cc_objc] // PHP [cc_sql][/cc_sql] // SQL