var rightMenu = new ContextMenu();
rightMenu.hideBuiltInItems();
var website = new ContextMenuItem("click here for my website", action);
rightMenu.customItems.push(website);
function action() {
getURL("http://www.plenarycreation.com");
}
var email = new ContextMenuItem("e-mail me", action2);
rightMenu.customItems.push(email);
function action2() {
getURL("mailto:[email protected]");
}
_root.menu = rightMenu;
stop();
You can adjust it as you wish and add even more menus...
Hope it helped.
how to use it in button, i tried but not getting expected options, geting normal flash right click options
What do you mean by using it on buttons ? You use that code on frame... You just place it on your first frame of the stage and it should work... atleast it works for me... The site you linked to is based on the same criteria ( instead of getURL you can use any other command, like gotoAndPlay(); or anything else )... Use your imagination...
Ok, so i'm using Flash Pro 8, but before this i was using Flash MX Pro 2004 and it worked fine on that... I know only this way of customizing your flash menu ( and don't think that any other way it possible, but not sure... ).
Anyways, i attached a .fla file here saved for MX PRO 2004, hope MX 2004 opens it, and hope it works...