FLASH音乐播放器源文件

来源:百度知道 编辑:UC知道 时间:2024/05/24 03:16:49
求一个FLASH音乐播放器FLA源文件,如果有教程那就更好了,是要用XML文件得那种,也就是说以后只要改XML就行,不用改FLASH。
xh = 0;
mp3gm_array = new Array();
mp3dz_array = new Array();
mp3 = new Sound();
mp3xml = new XML();
mp3xml.ignoreWhite = true;
mp3xml.load("mp3url.xml");
mp3xml.onLoad = function(success) {
if (success) {
trace("mp3地址载入成功");
for (d=0; d<this.firstChild.childNodes.length; d++) {
mp3gm_array.push(this.firstChild.childNodes[d].attributes.mp3gm);
mp3dz_array.push(this.firstChild.childNodes[d].attributes.mp3dz);
}
} else {
"mp3地址载入失败";
}
aa();
};
function aa() {
mp3.loadSound(mp3dz_array[xh], true);
gmxs = mp3gm_array[xh];
mp3.onSoundComplete = function() {
xh++;
if (xh == mp3dz_array.length) {
xh = 0;
}
mp3.start(0);
aa();
};
}
onEnterFrame = function () {
zdx = mp3.duration/1000;
y


http://user.qzone.qq.com/670425606/blog/1227420139

MP3播放器?用FLASH,FLEX都可以啊

★火山flash音乐播放器三部曲完成(附源文件和歌词同步教程):
http://bbs.blueidea.com/thread-2682812-1-2.html