I have external SWFs that are being loaded down a few layers of
dynamically created MCs. My menus show fine in Player 9.0.28.0 but in
9.0.16.0 I get the long, default MM/Adobe menu. Don't know why it is
failing. I'm also trying to get this working in Player 7.
Basically, my context menus have many submenus. So I am dynamically
drawing them. CMenu is my drawing class and holds each menu option. Is
does this have anything to do with possibly disabling the context menu on
the root?
/**
* setRightClick() - Sets up a right click menu to show the CMenu
*
* @param pMC MovieClip to attach Flash context menu.
* @param pMenu CMenu to show when option is selected.
*/
private function setRightClick(pMC:MovieClip, pMenu:CMenu):Void {
var cm:ContextMenu = new ContextMenu();
cm.hideBuiltInItems();
var rightClick:ContextMenuItem = new ContextMenuItem("Show
\"Right-Click\" Menu", function() {
pMenu.setName(pMC._name);
pMenu.showMenu();
});
cm.customItems.push(rightClick);
pMC.menu = cm;
}
Muzak posted this link about 2 1/2 years ago but the link is broken.
http://chattyfig.figleaf.com/ezmlm/ezmlm-cgi?1:sss:121542#b
Current archive:
http://chattyfig.figleaf.com/mailman/htdig/flashcoders/2004-November/124997.html
Thanks.
Chris
_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com