Custom right context menu in flash
Oct 26 2009
Here is simple know to every one tutorial about how to make custom right context menu in flash.
//code for new right-click menu
var myMenu = new ContextMenu();
//Hide flash's built in items (zoom in, zoom out, etc)
myMenu.hideBuiltInItems();
//goToUrl function used for calling customLinkUrl when link is clicked
function goToUrl(){
//_blank opens the link in a new window
getURL("http://www.jibysk.com", "_blank");
}
//Create a new item for the new menu.
var copyright = new ContextMenuItem("© 2009", goToUrl);
//Add the item to the new menu
myMenu.customItems.push(copyright);
//Adding new item to the menu
function onPause(obj:Object, menu:ContextMenu) {
trace("bank");
}
var menuItem = new ContextMenuItem("Jiby S K",onPause);
myMenu.customItems.push(menuItem);
//Apply the new menu
_root.menu = myMenu;
[Download not found]


















