Solved

Disable left click on embedded swf movie?

Posted on 2010-11-12
5
601 Views
Last Modified: 2012-05-10
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?
0
Comment
Question by:lordrt
  • 3
  • 2
5 Comments
 
LVL 8

Accepted Solution

by:
section25 earned 500 total points
ID: 34124359
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
 
LVL 8

Expert Comment

by:section25
ID: 34124362
BTW, you can't do it at the embed part.
0
 
LVL 4

Author Comment

by:lordrt
ID: 34133791
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
 
LVL 8

Assisted Solution

by:section25
section25 earned 500 total points
ID: 34136844
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
 
LVL 4

Author Closing Comment

by:lordrt
ID: 34142606
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

Featured Post

ScreenConnect 6.0 Free Trial

Want empowering updates? You're in the right place! Discover new features in ScreenConnect 6.0, based on partner feedback, to keep you business operating smoothly and optimally (the way it should be). Explore all of the extras and enhancements for yourself!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
FLV versus SWF 11 277
bandwidth 5 71
Why is this simple, masked Flash animation flickering? 20 197
Running Mp4 or Flash Video 1 115
I come across a lot of question about how to access things in the document class from a movieclip, or accessing something from a movieclip in the document class. It took me a while to figure this out but once I did it makes life so much easier. …
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…
The goal of the tutorial is to teach the user how to how to record live broadcast.
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.

822 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