0
任何人都可以告訴我爲什麼removeEventListener
呼叫不起作用嗎?爲什麼removeEventListener無法正常工作?
this.addEventListener(Event.ENTER_FRAME, eventCall, false, 0, true);
function eventCall(e:Event):void
{
trace("event still attached");
this.removeEventListener(Event.ENTER_FRAME, eventRemoved);
}
function eventRemoved():void
{
trace("gone");
}