Creating custom context menu in Flash using AS3.0 - Flash Tutorials

VerkkoNetPublished: August 10, 2017
Published: August 10, 2017

This video is about creating a custom right click menu to the flash project.

Website: http://samsolomonprabu.com/

Here's the source code:
-----------------------------
var myContextMenu:ContextMenu = new ContextMenu();
myContextMenu.hideBuiltInItems();
var menu1:ContextMenuItem = new ContextMenuItem(-@ created by sam-);
myContextMenu.customItems.push(menu1);
this.contextMenu = myContextMenu;

menu1.addEventListener(ContextMenuEvent.­MENU_ITEM_SELECT,loadMyProfile);

function loadMyProfile(e:ContextMenuEvent):void{
navigateToURL(new URLRequest(-http:--www.facebook.com-ultr­a_sam-));
}

Recommend tags
  • action script programming+1
  • as3+1
  • adobe flash+1
  • flash tutorials+1

action script programmingas3adobe flashflash tutorials

Comments

0 comments