Tutorial: How to disable right clicking!

Tutorial: How to disable right clicking!

von BHBProd
Fehler melden
Spiel melden
Loading ad...

Tutorial: How to disable right clicking!

Bewertung:
2.4
Veröffentlicht: October 28, 2010
Zuletzt aktualisiert: October 28, 2010
Entwickler: BHBProd

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

0/1000
chaos548 avatar

chaos548

Apr. 20, 2011

1
0

Stage.showMenu=false <-- DONE!

hamvvar avatar

hamvvar

Oct. 28, 2010

1
2

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 avatar

ita133

Oct. 29, 2010

1
3

lame

BLUEALEX7 avatar

BLUEALEX7

Oct. 28, 2010

1
3

You know people can hold the left click and do it.