00:00
00:00
Newgrounds Background Image Theme

Someone gifted Furvoc supporter status!

We need you on the team, too.

Support Newgrounds and get tons of perks for just $2.99!

Create a Free Account and then..

Become a Supporter!

AS: disabling right click

1,174 Views | 7 Replies
New Topic

AS: disabling right click 2006-01-20 07:14:47


This tutorial will show you how to stop people skiping password scenes or something like that by disabling the right click function so they can't select play. I have learnt how to get around this but it is hard and few people know how so here we go:

First of all select your first frame. Then click the actions pannel and type in:

Stage.showMenu = false;

And that's it done! This is probally the simpilist code you will ever learn but i will explain it for the hell of it!

Stage.
This means the flash basically.

showMenu =
Obviously this shows your talking about whether you want the right click menu to appear.

false;
Obviously "false;" means you don't want to show it and "true;" means you do want to. But if you wan't it too you don't have to type in the true code as that is automatic.

Response to AS: disabling right click 2006-01-20 07:18:57


Did you know 'i//' divides the var i with itself?


BBS Signature

Response to AS: disabling right click 2006-01-20 07:21:30


^so in other words......1?

Response to AS: disabling right click 2006-01-20 07:24:45


Whats that got to do with anything ?

Response to AS: disabling right click 2006-01-20 07:40:21


I believe this has been posted a lot of times, and IMO I don't think that it needs a whole topic devoted to it, it's just 1 line of code.


> twitter.

Response to AS: disabling right click 2006-01-20 07:59:55


At 1/20/06 07:14 AM, -bloodskater- wrote: it is hard

It isn't hard, it's just one property. Besides, several ways of doing it was covered in AS: SWF Right-Click Menu by Denvish.


BBS Signature

Response to AS: disabling right click 2006-01-20 11:07:33


At 1/20/06 07:18 AM, -Gust- wrote: Did you know 'i//' divides the var i with itself?

wtf are you on about // starts a coment
and
/* starts a long one hehehe*/


I have done the deed. Didst thou not hear a noise?

BBS Signature

Response to AS: disabling right click 2006-01-20 11:13:46


Not really necessary... please read through AS:main to make sure your topic hasn't been covered. And one line of code isn't a tutorial :p


BBS Signature