as2的時候

soundplay=new Sound();
soundplay.loadSound("Music.mp3",true);
soundplay.play();


as3的時候

var soundplay:Sound = new Sound();
soundplay.load(new URLRequest(mp3str));
soundplay.play();

參考:
1. http://blog.kuei.tw/page/56/  //as2

2. http://www.flash2u.com.tw/TopicOther.asp?t=5&BoardID=36&id=89094   //as3

3. http://blog.roodo.com/esabear/archives/7694057.html  //as2與as3語法對照表

arrow
arrow
    全站熱搜

    迷路死小鬼 發表在 痞客邦 留言(0) 人氣()