Quote:
Originally Posted by nbyte
Hi.
I want to write flash project using ActionScript 3 which will be running under web browsers.
And I'd like to disable default right click menu and handle right mouse button for my other events.
I tried to do
HTML Code:
<param name="menu" value="false"/>
but it only removes zoom buttons.
So I'd like to know, It's possible to remove all menu? 
|
---------------
I know this one works....I think its from dynamic drive so I just put that in there. I think it works in everything but opera. Hope this helps.
<script language=JavaScript>
<!--
//Disable right mouse click Script
//By Dynamic Drive
var message="© Your message here";
///////////////////////////////////
function clickIE4(){
if (event.button==2){
alert(message);
return false;
}
}
function clickNS4(e){
if (document.layers||document.getElementById&&!docume nt.all){
if (e.which==2||e.which==3){
alert(message);
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("alert(message);return false")
// -->
</script>