myMenu = new ContextMenu();
myMenu.hideBuiltInItems();
myMenu.addEventListener(ContextMenuEvent.MENU_Select,menuSelect);
this.contextMenu = myMenu;
function menuSelect(e:ContextMenuEvent)
{
trace(”menuSelect”);
}
as2:
var my_cm:ContextMenu = new ContextMenu();
function menuHandler(obj:Object, menu:ContextMenu) {
trace(’menuSelect’);
}
my_cm.onSelect = menuHandler;
this.menu = my_cm;
新闻热点
疑难解答