- Function變數為null時,直接呼叫會導致程式中斷,不繼續後面程式錯誤:var callback:Function;this.callback();trace("callback complete");//這行不會被執行正確:var callback:Function;this.execCallback();function execCallback():void{if(this.callback!=null){
this.execCallback();
}
return;
}