Solved

disable right click

Posted on 2004-04-29
9
175 Views
Last Modified: 2010-04-03
Hi is it possible to totally disable the right click menu in flash???? i'm doign a preschool app, n not all the kids cant handle the mouse well as yet.

plz i don't need javascript, that part is easy to do... thnx
0
Comment
Question by:rrleah
9 Comments
 
LVL 9

Accepted Solution

by:
j3one earned 63 total points
ID: 10951087
yes. you can. I have used this to replace icons on my exe projectors, and I believe it can disable the menu too.
-> http://www.users.on.net/johnson/resourcehacker/
0
 
LVL 9

Expert Comment

by:j3one
ID: 10951541
This may not be an option, but importing your swf into Macromedia Director then publishing your exe will give you greater control.
0
 
LVL 9

Expert Comment

by:krishnaprathab
ID: 10951897
Hi,

j3one is correct if you are creating an executable file, only then its possible. It s otherwsie impossible to do it in a SWF player. You can crack into flash.ocx but it will affect only the machine you creacked it in and will not affect other machines.

If you need any more help or have questions on it , please ask.

Thanks,
KP
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 3

Expert Comment

by:mvwmail
ID: 10953775
an easier way is to stick this code somewhere BEFORE the <BODY> tag.. if you are using COLDFUSION, stick it in a template which can be be called using <CFINCLUDE> when you want right click disabling.

<script language=JavaScript>
<!--

//Disable right mouse click Script

///////////////////////////////////
function clickIE4(){
if (event.button==2){
return false;
}
}

function clickNS4(e){
if (document.layers||document.getElementById&&!document.all){
if (e.which==2||e.which==3){
return false;
}
}
}

if (document.layers){
document.captureEvents(Event.MOUSEDOWN);
document.onmousedown=clickNS4;
}
else if (document.all&&!document.getElementById){
document.onmousedown=clickIE4;
}

document.oncontextmenu=new Function("return false")

// -->
</script>
0
 
LVL 3

Expert Comment

by:mvwmail
ID: 10953788
ooops except it only disables right click ANYWHERE BUT the flash animation.. sorry
0
 
LVL 3

Expert Comment

by:mvwmail
ID: 10953798
IN fact I should read your question more carefully... I am going to bed, its late
0
 
LVL 23

Assisted Solution

by:Zeffer
Zeffer earned 62 total points
ID: 10956831
you can partially turn off right-click using html

it will give the same result as using..

fscommand("showmenu","false"); //in an projector swf

insert this before the embed tag..

<PARAM NAME=menu VALUE=false>

Z
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

The last time I worked with Flash and Socket connections was in AS1. A recent project required flash connecting to a Socket, and sending receiving information - we figured it would be easy enough - we all know about the socket policy documents and c…
I have found that much of my time doing support ends up being a constant repetition of the same steps to different people.  Early on I stated using web pages with Frequently Asked Questions (FAQs) to alleviate most of the burden.  Sometimes this jus…
In this tutorial viewers will learn how to create a basic shape tween animation in Flash including shape hints for smooth animation Open a new document in Flash: Draw a shape: Select another frame (how long you want the tween to be): Right click and…
This Micro Tutorial will teach to how to utilize bit rate in Adobe Flash Media Live Encoder.

696 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question