actionscript 3 - disabling context menu and mouse in Flash -


this should pretty straight forward.

this should trick

stage.removeeventlistener(mouseevent.right_click, function(e:mouseevent):void{}); mouse.hide(); 

and when run in standalone player works.

however when run in browser, right-click menu shows again. i've tried setting param wmode="opaque", removes context menu (independent of code), shows mouse despite css setting: cursor: none;

is there listener calls context menu can disabled?

to disable context menu ( , right click ), can use mouseevent.right_click , / or mouseevent.context_menu ( available flash player 11.2 , ) :

stage.addeventlistener(mouseevent.right_click, function(e:mouseevent):void {}); stage.addeventlistener(mouseevent.context_menu, function(e:mouseevent):void {});  mouse.hide(); 

hope can help.


Comments

Popular posts from this blog

cakephp - simple blog with croogo -

How to group boxplot outliers in gnuplot -

bash - Performing variable substitution in a string -