Tutorial: How to disable right clicking!
von BHBProd
Tutorial: How to disable right clicking!
Tags für Tutorial: How to disable right clicking!
Beschreibung
Dieser Code sorgt dafür, dass jemand automatisch verliert, wenn er mit der rechten Maustaste klickt: var myMenu:ContextMenu = new ContextMenu();//erstelle ein neues Kontextmenü namens myMenu. function rightClick() {//erstelle eine neue Funktion namens rightClick. gotoAndStop('cheatFrame');//wenn die rechte Maustaste gedrückt wird, gehe zum cheatFrame. }//. myMenu.onSelect = rightClick;//wenn das Kontextmenü aufgerufen wird, führe die Funktion rightClick aus. this.menu = myMenu;//nehme die notwendigen Änderungen vor, um zum Cheat-Frame zu gelangen.
Spielanleitung
Gehe das Tutorial durch!
Kommentare
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.