Disable left click on embedded swf movie?

Hello
I have only a swf file available to be embedded on a website, and want to diable left click on it, how can I do this when writing the <embed> part?
LVL 4
lordrtAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
section25Connect With a Mentor Commented:
If you only have the swf, then you can't edit the fla to remove left-clicking, Your only option is to do it at the browser level. You can do it in IE, but not firefox. This also disables the whole page, not just your swf.

<script language="javascript">
function noLeftClick() {
   if (event.button==1) {
   }
}
document.onmousedown=noLeftClick
</script>
0
 
section25Commented:
BTW, you can't do it at the embed part.
0
 
lordrtAuthor Commented:
thanks, but basically here if I understood well, if there is a button acting as a link on my webpage, it will be disabled as well?
0
 
section25Connect With a Mentor Commented:
No, Flash will override the Javascript settings. It will still be clickable. I'm pretty sure there is no way to stop it without the fla file.
0
 
lordrtAuthor Commented:
ok then, think will have to leave the swf as it is, bcoz am not in direct contact with the person who creates the flash movies
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.