我试图在我的游戏中重放这个声音......但由于某种原因它正在工作,有人可以解释一下为什么吗?
var morning:Sound =new alarmclock ();
var transforming:SoundTransform = new SoundTransform(0.5);
var morningChannel:SoundChannel = morning.play(0,0,transforming);
morningChannel.addEventListener(Event.SOUND_COMPLETE, replay);
function replay (event:Event) {
morningChannel = morning.play(0,0,transforming);
trace ("ANYBODY IN THERE????");
}