Howdy! I'm Jiby and I'm a web designer creates attractive, accessible standard compliant websites good at css, html

 
 

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]

Bookmark this..

http://www.jibysk.com/wp-content/plugins/sociofluid/images/stumbleupon_48.png http://www.jibysk.com/wp-content/plugins/sociofluid/images/delicious_48.png http://www.jibysk.com/wp-content/plugins/sociofluid/images/newsvine_48.png http://www.jibysk.com/wp-content/plugins/sociofluid/images/technorati_48.png http://www.jibysk.com/wp-content/plugins/sociofluid/images/magnolia_48.png http://www.jibysk.com/wp-content/plugins/sociofluid/images/google_48.png http://www.jibysk.com/wp-content/plugins/sociofluid/images/myspace_48.png http://www.jibysk.com/wp-content/plugins/sociofluid/images/facebook_48.png http://www.jibysk.com/wp-content/plugins/sociofluid/images/yahoobuzz_48.png http://www.jibysk.com/wp-content/plugins/sociofluid/images/twitter_48.png http://www.jibysk.com/wp-content/plugins/sociofluid/images/meneame_48.png

Tags: |

Leave a Reply