Reputation: 73
i want to know how to disable the right click menu in the "incubator(FlashPlayer 11)"?
As i know, in the old version, we can use set wmod is "opaque" then the right click menu could be disable by a javascript.
But, in the "Incubator" we must set the wmod is "direct" could use the hardware render. So, how to disable the right click menu in the "Incubator"?
Upvotes: 0
Views: 2981
Reputation: 51837
Available since Flash Player 11.2, you should be able to simply suppress the default context menu like so:
stage.addEventListener(MouseEvent.RIGHT_CLICK, function(e:Event):void{});
You can also download an example from Lee Brimlow or video guide if it helps.
Upvotes: 0
Reputation:
One method:
"Just add this to the html-file of the flashmovie, into the object tag of the flashmovie:
<param name=menu value=false>
That does it!"
Another method is to do so using AS3 code:
var custom_menu:ContextMenu = new ContextMenu();
custom_menu.hideBuiltInItems();
_root.menu = custom_menu
Sources:
http://board.flashkit.com/board/showthread.php?t=299218
http://forums.creativecow.net/thread/190/859287
This is something a quick and easy google search can reveal rather easily.
Upvotes: 1