我从上下文菜单中调用下面的函数,图形被清除。如果调用来自另一个函数,它不会。为什么它不起作用?
function removeFrame(e:Event=null):void{
holder.graphics.clear();
}
function cleanIt(e:Event=null):void{
removeFrame()
}
// NOT working by calling it like this:
cleanIt()
// It's Working if I call the function directly from the right-click menu:
menuitem1.addEventListener(ContextMenuEvent.MENU_ITEM_SELECT,cleanIt);
谢谢。乌里