Disabling the context menu in as3..

Tuesday, March 11, 2008

Quick little code post here.. took me a while to work out how to do this, it's always the smallest things as they say.

 stage.showDefaultContextMenu=false;

You can of course customize the menu, i'm yet to experiment with that but here's a useful tute about the method, straight from drawlogic.com

Article Link

http://drawlogic.com/2007/06/12/howto-using-the-contextmenu-in-as3-with-fullscreen-mode-as-a-sample/

Leave a Reply

In order to submit a comment, you need to mention your name and your email address (which won't be published). And ... don't forget your comment!

Comment Form