Solved

Disable Right Mouse Display Menu

Posted on 2002-03-28
5
550 Views
Last Modified: 2008-03-03
Hello,

Flash MX question

I need to get rid of the right mouse display menu that appears when you "right mouse click" on  flash movie embedded on an html page.

I found the "Display Menu" checkbox when publishing but that still shows two items "About Flash" and "Settings"

I really need to get rid of Settings.  Any suggestions?

All the MACR help says if you unclick the display menu in publishing then all that shows up is "About Flash"

Not so with the latest Plugin.

Thanks................Rob
0
Comment
Question by:jsttriit
[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
5 Comments
 
LVL 2

Accepted Solution

by:
mousefist earned 50 total points
ID: 6903725
so it would be ok if it just showed up with about, but not about and settings?  is there a reason why you don't want the user to have access to the settings?  if you're doing something with shared objects, they will still be able to remove them by pointing their browser to another swf and removing them with settings there.  otherwise, the settings menu is pretty harmless, isn't it?

anyways, i'm not sure if this will work.  you can try to use a dhtml trick to disable right clicks - just do a google search for "no right click" or "disable right click" ... there are zillions of scripts out there for that.  but i have never gotten that sort of thing to work with flash, because it is an object, and the dhtml stuff that works so nicely with images and other normal html does not work with objects.  perhaps another brilliant ee-er has gotten that to work?

the "put an invisible image over everything" trick won't work for flash either ... at least not across browsers.  and it would screw up your left clicks if it did.

this might help you though ... another dirty trick with very limited application.  create a layer at the top and put dynamic text boxes everywhere that you don't have a button ... or maybe just one huge one to cover the screen.  now the user still gets a context menu, but it's just a grayed out copy and paste ... pretty clever, no?  if you have much user interaction in your movie, it is going to be a pain in the a** to make it work this way, but it's quite possible if you just use _xmouse and _ymouse and the event listeners.  not perfect - dhtml would be better - but like i said it might help.

m!
0
 

Expert Comment

by:ryco
ID: 6904637
Unfortunately there's no way to get rid of that,At least you'll see "About Macromedia Flash x.x" in the menu,but there's a way to hide the settings even if the swf is opened seprately (I mean not embeded in  an html i.e setting the parameters of <object ..><param name=menu value=hide> and for embed <embed menu=false>)
So all you have to do is to add this action to your movie:FScommand and from the dropdowns select commands for standalone player choose show menu and set the value to false.
I think that will work but you cannot get rid of it completely as I mentioned above..
0
 
LVL 19

Assisted Solution

by:webwoman
webwoman earned 50 total points
ID: 6905653
Do it in the HTML page, not the Flash movie.

Go here..
www.javascriptsource.com
Find a disable right click script. Add it to your HTML file, there will be directions that come with the script.

Not sure if it will work with Flash, but it should.
0
 
LVL 9

Expert Comment

by:OBCT
ID: 10311608
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:

Split between mousefist and webwoman.

Please leave any comments here within the next four days.

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!

OBCT
EE Cleanup Volunteer
0

Featured Post

Industry Leaders: 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

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 shape tween animation in Flash including shape hints for smooth animation Open a new document in Flash: Draw a shape: Select another frame (how long you want the tween to be): Right click and…
The goal of the tutorial is to teach the user how to select which audio input to use. Once you have an audio input plugged into the laptop or computer, you will go into the audio input settings and choose which audio input you want to use.

751 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