PDA

View Full Version : masking the menu bar while keeping the context menu


Mathieu_BSL
08-23-2006, 09:41 PM
Hi !

Is it possible to hide the menu bar
within the standalone flash player WHILE keeping our
customized context menu ?

For example, consider this little script :

var r:ContextMenu = new ContextMenu();
r.hideBuiltInItems();
test=function () {
}
r.onSelect = function() {
r.customItems.push (new ContextMenuItem ("yahoo!",test));
};
_root.menu = r;
Stage.showMenu = true;


If you "run" the swf file in the standalone version of the
Flash Player, the menu bar and the context menu are visible.

If I set Stage.showMenu = false, I can't see anymore my contextual
menu... I would like to hide the menu bar, but also I want to keep my
context menu...is it possible ?

mcmcom
08-23-2006, 09:47 PM
i think the only way is this way :
http://www.actionscript.org/tutorials/intermediate/context_menu/index.shtml

and it leaves a couple built in things.

hth,
mcm

galak
08-23-2006, 09:54 PM
what do you call the lmenu bar?

Mathieu_BSL
08-24-2006, 09:45 AM
mcmcom : I've already read that tutorial, but I don't understand
how it answer to my question...maybe it's because
it's 4'o clock in the morning...:rolleyes:

galak : the menu bar is the menu of the swf file when you
double-click on any local swf file (that menu is never visible
in your browser, only in the standalone player)
In the menu bar, you have many options (FILE, DISPLAY, HELP)
The File menu allow you to create a projector.

mcmcom
08-24-2006, 05:38 PM
well thats the only way to do it. So i guess your stuck

mcm

Mathieu_BSL
08-25-2006, 02:45 AM
Doh !