PDA

View Full Version : Making The Flash Menu Go Awaaay!!!



pvoegele
October 1st, 2002, 02:48 AM
I published a flash animation for my site. When I go to the page it loads correctly, but when I right click on the animation is displays a menu. How do I make that menu inactive? So that when it is clicked on, nothing comes up.

Is it something that I have to do when I publish???

I'm Clueless!!!!

Kitiara
October 1st, 2002, 05:52 AM
Yes it is. Instead of doing a Ctrl+Enter to publish, go into the Publish Settings on the File menu and check the appropriate boxes. I think it's something like 'Protect From Import'? Can't rememeber exactly. But that's where it all is.

jerry
October 1st, 2002, 06:26 AM
just insert the following code into your flash html tag:

param name="menu" value="false"

Andy
October 1st, 2002, 11:58 AM
Thx, I was wondering too, gotta wright down that code somewhere.

pom
October 1st, 2002, 02:31 PM
Yet another post Andy, but I'll suppress that one. Just to say that I'm putting this in the Best of Kirupa waiting for someone to put this in the tricks, even though it's not AS, it's very useful.

pom :cowboy:

psm78
October 8th, 2002, 04:12 AM
when you publish the file, in the HTML menu just remove the tick from 'Display Menu' option.This will definately solve your problem:smirk:

morse
November 10th, 2002, 11:31 PM
that didnt solve it for me

lostinbeta
November 10th, 2002, 11:50 PM
Them menu never completely goes away. You can narrow it down to Settings and About Flash Player.

Getting rid of the menu just gets rid of zooming, rewind, fast forwading, etc.

fluid_0ne
March 25th, 2003, 03:40 PM
my advice:

put it into any frame...
getURL("FSCommand:showmenu", "false");
getURL("FSCommand:trapallkeys", "true");

cheers

jazzman121
June 15th, 2003, 02:33 AM
you could also use this... in ur .swf (FMX).. then u dont need to add code to html ...


Stage.showMenu = false;

aovivo
April 17th, 2004, 09:28 AM
Stage.showMenu = false;
_this function is GooD !
I use you more and no show de menu on right click !
:D use U!

MTsoul
April 27th, 2004, 10:29 PM
Nope, the menu still comes up..

I remember seeing this site with flash templates, and when launched a sample, they somehow javascripted the flash. The flash had the properties of an image. It moved everything like the swf could, and you could even select it! like an image! and when you right click, NOTHING! (probably because they disabled right click on the page in the html too). Anyone know hwo to do that? :)

Jeff Wheeler
May 4th, 2004, 11:01 PM
yeah, sounds to me like they turned on trasparency stuff thingy but I'm not sure if that does the menu thing, but it does the select image thingy, you can read about it on this tut: http://www.kirupa.com/developer/mx/transparency.htm

rollala
July 22nd, 2004, 06:06 PM
Sorry, I'm confused. Which is the best way to get rid of the menu?

Too many options :)

-R

lostinbeta
July 22nd, 2004, 11:36 PM
Stage.showMenu = false;

in the first frames actions.

Though one way isn't better than the other, they both do the same thing. Not sure if any of them is more 'efficient' than the other. Pick whichever one suits you best... hehe. Either way, there is no way to completely remove the menu (although in MX2k4 you can add custom options, they still don't let you remove that menu)

Jaded Monkey
August 1st, 2004, 01:20 AM
Neither Stage.showMenu = false; nor <param name="menu" value="false" /> work to remove the Flash menu while you're using the Firefox browser.

Is there another way?

lastchance
August 7th, 2004, 06:58 AM
getURL("FSCommand:showmenu", "false");
getURL("FSCommand:trapallkeys", "true)

FScommand is generally for projector files (exe) and isnt such a good idea in this case.

Just use the tried and tested
Stage.showMenu = false;

cheers

lostinbeta
August 7th, 2004, 01:06 PM
Jaded: Did you update your plug-in for the firefox browser? I've tested these methods in my Firefox and do not experience any issues.

e-sarbak
May 6th, 2005, 05:50 AM
I would also suggest the Stage one

Jjp productions
May 7th, 2005, 10:33 AM
If you have macromedia flash mx 2004, i'm pretty sure you can just put in
MENU = new ContextMenu();
MENU.hideBuiltInItems();
_root.menu = MENU;
I hope that helps at least a little.

hudz
September 2nd, 2005, 02:10 AM
Hi,
Im new here, by the way thanks to all of your SC.

Hunson
February 2nd, 2007, 01:02 AM
just so you guys know, this is a way i've found out, only in AS.


build a invis movieclip on top of everything once you're done with ur project, then:

var myCustomMenu:ContextMenu = new ContextMenu();
myCustomMenu.hideBuiltInItems();
myCustomMenu.builtInItems.print = false;
bg_mc.menu = myCustomMenu;