従って、イベントリスナを再登録する必要がある。
snd:Sound = new TestSound();
sch:SoundChannel = new SoundChannel();
public function sndPlay():void {
sch = snd.play();
sch.addEventListener(Event.SOUND_COMPLETE, onSndComplete);
}
public function sndStop():void {
sch.removeEventListener(Event.SOUND_COMPLETE, onSndComplete);
sch.stop();
}
private function onTimerComplete(event:TimerEvent):void {
trace("Sound Complete!");
}
No comments:
Post a Comment