Solved

disable right click

Posted on 2004-04-29
9
154 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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Reduce the size of the Flash SWF file it executes 12 417
anti-download video publishing site? 6 612
free flash maker 5 206
Include Adobe AIR libraries in Flash Builder 4 111
This is intended to introduce all collision detection principles in flash, their strengths, weaknesses and workarounds. The main method for Collision Detection in flash is using hitTestObject. But unless you'll be pushing rectangular shapes without …
I know the transition can be hard. We got used to the ease of use ActionScript 2 had, but honestly, it became problematic later on, especially if designers were involved in the project and found it easy to add code as they saw fit. So, this artic…
The goal of the tutorial is to teach the user how to how to record live broadcast.
The goal of the tutorial is to teach the user how to select the video input device. Make sure you have an input device that in connected and work and recognized by Adobe Flash Media Live Encoder and select it in the “video input” menu.

910 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now