0

My question is simple. I want to disable mouse right click on my FLASH GAMES website, so that players cannot leave my website when right clicking a game and clicking on "ABOUT FLASH PLAYER". My games are developed using AS3 and FLEX/FLASH .

I am interested in any kind of solutions, so that every player that plays my games cannot right click the game and see the "ABOUT FLASH PLAYER" or at least to prevent him leaving the website when clicking "ABOUT FLASH PLAYER".

I tried to disable rightclick from JS but most likely the code wasn't good.

Any help?

4

1 に答える 1

1

Flash Player 11を使用している場合は、

stage.addEventListener(MouseEvent.RIGHT_CLICK,function(e:MouseEvent):void{});

このチュートリアルの詳細。

于 2012-12-09T12:53:03.613 に答える