var my_cm = new ContextMenu();
my_cm.hideBuiltInItems();
my_cm.customItems.push( new ContextMenuItem("Sucy",func_1) );
my_cm.customItems.push( new ContextMenuItem("Alien",func_2) );
my_cm.customItems.push( new ContextMenuItem("Jinni",func_3) );
my_cm.customItems.sort();
function func_1() { trace(" Called Sucy!") }
function func_2() { trace(" Called Alien! ") }
function func_3() { trace(" Called Jinni! ") }
_root.menu = my_cm;
我都觉得可以给 mc增加右键..哈哈..
已经测试完成.可以
在mc内部第一桢..
_root.menu = my_cm;改为this.menu = my_cm;
my_cm.hideBuiltInItems();
my_cm.customItems.push( new ContextMenuItem("Sucy",func_1) );
my_cm.customItems.push( new ContextMenuItem("Alien",func_2) );
my_cm.customItems.push( new ContextMenuItem("Jinni",func_3) );
my_cm.customItems.sort();
function func_1() { trace(" Called Sucy!") }
function func_2() { trace(" Called Alien! ") }
function func_3() { trace(" Called Jinni! ") }
_root.menu = my_cm;
我都觉得可以给 mc增加右键..哈哈..
已经测试完成.可以
在mc内部第一桢..
_root.menu = my_cm;改为this.menu = my_cm;
回复Comments
作者:
{commentrecontent}