Solved

disable right click

Posted on 2004-04-29
9
182 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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
Salesforce Made Easy to Use

On-screen guidance at the moment of need enables you & your employees to focus on the core, you can now boost your adoption rates swiftly and simply with one easy tool.

 
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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

This article describes a solution to a problem of subloading one movie into another when they have different SWF versions. Sometime back, I was working on an ActionScript project while I came across an interesting fact which I would like to share…
While working over numerous projects I often had the requirement for doing a screen capture in AS3.0. Unfortunately I found no "ready made" solutions in google search that suited my requirements. But I did come across some great resources which help…
The goal of the tutorial is to teach the user what frame rate is, how to control it and what effect it has on the video.
This Micro Tutorial will teach to how to utilize bit rate in Adobe Flash Media Live Encoder.

690 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