Solved

disable right click

Posted on 2004-04-29
9
168 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
Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

 
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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

There are times in your Flash CS4 application when you want more than a simple pointer or a hand, and it's hard to find an ideal walk-through to tell you what to do.  I spent a few days recently learning my way around making custom cursors in Flash,…
In my long career of working as an actionscript developer, I had spent sleepless night often working hard to solve some small problems which actually took a lot of my development time; later found out the solutions to be a line or two. Here are s…
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…
The goal of the tutorial is to teach the user how to select which audio input to use. Once you have an audio input plugged into the laptop or computer, you will go into the audio input settings and choose which audio input you want to use.

809 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