flash +xml

来源:百度知道 编辑:UC知道 时间:2024/06/06 19:16:11
我要让一个flash

读取一个xml中的三个值

比如<a>1<a> <b>2<b> <c>3<c>,

并显示在flash中 ,如果<a>1<a> flash就播放一个声音;

我要action;如有有人回答的很好,我还奖励300分

var mymusic:Sound=new Sound();
function loadMusic(url:String){
mymusic.loadSound(url,true);
mymusic.start(0);
}
mymusic.onSoundComplete = function() {
mymusic.start(0);
}

var list=new Array();
list[0]="http://music13.51.com/user/c/6d/majie8502/b6d45790087b705bae718b415c411f1f.mp3";//you can win if you want
list[1]="http://music19.51.com/new/user/8/6e/wowuhui1989/88ed3b1614e403ae0dac56bbfa6b7dd1.mp3";//trouble is a friend
list[2]="http://music10.51.com/user/0/25/lzxlehao/3b876ba8436de413ed6ae979ae508e