close
動作:
import flash.events.Event;
import fl.events.SliderEvent
var sound:Sound=new Sound(new URLRequest("1.mp3")); //載入1.mp3
var soundCtl:SoundChannel=new SoundChannel(); //宣告SoundChannel
sound.addEventListener(Event.COMPLETE,$complete); //音樂載入完成
function $complete($e:Event):void{ //音樂載入完成的執行函數
soundCtl=sound.play(); //播放(位置=0,重覆次數:無限次)
}
如需範例檔,請MAIL:css6666@yahoo.com.tw
如果您認為內容不錯,也請幫我點個廣告,謝謝。
全站熱搜