我有以下代码来生成一个新的爆炸影片剪辑。不幸的是,GameEvent.EXPLOSION_FINISHED 事件从未被触发。每个帧都有一个特殊的事件监听器吗?
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);