1
我有以下代碼來生成新的爆炸影片剪輯。不幸的是,GameEvent.EXPLOSION_FINISHED事件從未被觸發。是否有每個幀的特殊事件監聽器?AS3 - 特定幀eventlistener?
var exp:Explosion = new Explosion();
exp.addFrameScript(exp.totalFrames - 1, function():void {exp.stop();dispatchEvent(new GameEvent(GameEvent.EXPLOSION_FINISHED));});
exp.addEventListener(GameEvent.EXPLOSION_FINISHED, tidyUp, false, 0, true);
就是這樣。非常感謝! – Jan