Solved

disable right click

Posted on 2004-04-29
9
145 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
What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

 
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

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

Introduction This article is primarily concerned with ActionScript 3 and generally specific to AVM2.  Most suggestions would apply to ActionScript 2 as well, and I've noted those tips that differ between AS2 and AS3. With the advent of ActionS…
Recently, I was asked to recommend a tracking system to be implemented on a clients website. As the entire site was built on flash, my first thought was to suggest custom built tracking system. However, our company at that point of time didn't h…
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.
This Micro Tutorial will teach to how to utilize bit rate in Adobe Flash Media Live Encoder.

705 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

11 Experts available now in Live!

Get 1:1 Help Now