Tutorial: How to disable right clicking!
par BHBProd
Tutorial: How to disable right clicking!
Tags pour Tutorial: How to disable right clicking!
Description
Ce code fera perdre automatiquement quelqu’un lors d’un clic droit : var myMenu:ContextMenu = new ContextMenu();//crée un nouveau menu contextuel appelé myMenu. function rightClick() {//crée une nouvelle fonction appelée clic droit. gotoAndStop('cheatFrame');//quand le bouton droit est pressé, va à cheatFrame. }//. myMenu.onSelect = rightClick;//quand le menu contextuel est ouvert, exécute la fonction rightClick. this.menu = myMenu;//apporte les modifications nécessaires pour aller à la frame de triche
Comment jouer
Suis le tutoriel !
Commentaires
chaos548
Apr. 20, 2011
Stage.showMenu=false <-- DONE!
hamvvar
Oct. 28, 2010
Alright, but if you do implement this code you should also make sure that your game has built in toggles for "Show All" and Hi/Lo Quality.
A lot of games leave out the option to toggle quality and this can be a real shitty decision.
ita133
Oct. 29, 2010
lame
BLUEALEX7
Oct. 28, 2010
You know people can hold the left click and do it.