[Last Call] Learn about multicloud storage options and how to improve your company's cloud strategy. Register Now

x
?
Solved

Disable left click on embedded swf movie?

Posted on 2010-11-12
5
Medium Priority
?
619 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 1500 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 1500 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

I know the transition can be hard. We got used to the ease of use ActionScript 2 had, but honestly, it became problematic later on, especially if designers were involved in the project and found it easy to add code as they saw fit. So, this artic…
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…
In this tutorial viewers will learn how to create a basic motion tween animation in Flash Open a new document in Flash: Draw/import an image: Press CTRL + F8 to convert it into a graphic symbol: Select a frame (how long you want the tween to last): …
The goal of the tutorial is to teach the user how to select the video input device. Make sure you have an input device that in connected and work and recognized by Adobe Flash Media Live Encoder and select it in the “video input” menu.

656 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