stop(); var mymenu:ContextMenu= new ContextMenu(); mymenu.hideBuiltInItems(); var txt:String='onEnterFrame'; var item:ContextMenuItem= new ContextMenuItem(txt); mymenu.customItems.push(item); item.addEventListener(ContextMenuEvent.MENU_ITEM_SELECT,item_select); function item_select(e:ContextMenuEvent):void { var url:String='http://onenterflash.blogspot.com'; var site:URLRequest=new URLRequest(url); navigateToURL(site); } this.contextMenu=mymenu;
On Enter Flash : 004 Custom Context (Right Click) Menu
In this tutorial you will learn how to use as3( action Script 3) to hide the right click menu (context menu)in adobe flash. You will also learn how to use a custom item to link to a URL in the context menu in Adobe Flash Cs3.
CODE::
Labels:
as3,
On Enter Flash
0 comments:
Post a Comment