Solved

Disable left click on embedded swf movie?

Posted on 2010-11-12
5
606 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
[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
  • 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

Instantly Create Instructional Tutorials

Contextual Guidance at the moment of need helps your employees adopt to new software or processes instantly. Boost knowledge retention and employee engagement step-by-step with one easy solution.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Adobe Flash Free Transform Tool 2 153
How to block online streaming via TMG2010 ? 2 151
How do I have music file play continuously on a website? 6 110
You Tube Videos not playing 9 143
There are times in your Flash CS4 application when you want more than a simple pointer or a hand, and it's hard to find an ideal walk-through to tell you what to do.  I spent a few days recently learning my way around making custom cursors in Flash,…
I have been doing hardcore actionscripting for some time; and needless to say I have faced a lot of problems in just understanding others' code rather than understanding what the code executes. A programmer's life can become hell when there are a lo…
The goal of the tutorial is to teach the user how to use the auto adjust feature and what the different options do. When your video is not working right you can choose the auto adjust feature to help choose your settings.
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.

737 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