仅支持 Flash 11.3 或更高版本

<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" applicationComplete="init()" >

      

       </font></span> </p>

              <![CDATA[

                     // 要点: -locale en_US -swf-version=15

                     private function init():void{

                            this.addEventListener(MouseEvent.CONTEXT_MENU, this.handler_mouseEvent);

                     }

                     private function handler_mouseEvent(_arg1:MouseEvent):void{

                     }

                    

                     function hideMenu() {

                            stage.showDefaultContextMenu = false;

                     }

                    

              ]]>

       </mx:Script>

       <mx:Button x="112" y="236" label="Hide Menu" click="hideMenu()"/>

      

</mx:Application>

 

转载请注明:[WebLogic Android 博客](http://www.beansoft.biz) » [Flex 彻底屏蔽右键](http://www.beansoft.biz/2012/08/23/flex-%e5%bd%bb%e5%ba%95%e5%b1%8f%e8%94%bd%e5%8f%b3%e9%94%ae/)