Tuesday, 2 June 2009

Flash AS3 Disable Default Context Menu

This is just a quickie to answer a question many people seem to struggle to find the answer to.

After migrating from AS2 a lot of things changed; one of these was the method I used to use to disable the default options on the right-click menu such as the zoom and quality controls.

To do this in ActionScript 3 all you need to do is stick the following on frame 1 of your movie time line:

stage.showDefaultContextMenu = false;

Hope this helps some people out!

No comments:

Post a Comment