Tutorial: How to disable right clicking!
oleh BHBProd
Tutorial: How to disable right clicking!
Tag untuk Tutorial: How to disable right clicking!
Deskripsi
Kode ini akan membuat seseorang otomatis kalah saat klik kanan: var myMenu:ContextMenu = new ContextMenu();//buat menu konteks baru bernama myMenu. function rightClick() {//buat fungsi baru bernama right click. gotoAndStop('cheatFrame');//saat tombol klik kanan ditekan, pergi ke cheatFrame. }//. myMenu.onSelect = rightClick;//saat menu klik kanan muncul, jalankan fungsi rightClick. this.menu = myMenu;//lakukan perubahan yang diperlukan untuk menuju frame curang
Cara Bermain
Ikuti tutorialnya!
Komentar
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.