Solved

Disable left click on embedded swf movie?

Posted on 2010-11-12
5
603 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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
YouTube Link 10 363
Action Script commands 3 220
Adobe Media Server Or Encoder Broken Affer Static IP Change 4 184
Some You tube not working in IE11 on Windows 10 and 8.1 5 84
This is a very simple example to help those of you who are still migrating from AS2 to AS3 understand the redesigned event model in AS3. In AS2.0, event functions (that is, the function to be performed when an event is fired) were stored as a pro…
Recently, I was asked to recommend a tracking system to be implemented on a clients website. As the entire site was built on flash, my first thought was to suggest custom built tracking system. However, our company at that point of time didn't h…
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 how to record live broadcast.

830 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