0
我对Flash非常不满,我无法做到这一点。 我有php生成播放列表。 我用LoaderInfo()得到它,然后用split()将数据添加到数组中。AS3闪存中的播放列表循环
var paramObj:Object = LoaderInfo(this.root.loaderInfo).parameters;
var str:String = paramObj.playlist;
var array:Array = str.split(",");
这是问题所在。我知道如何从播放列表中,一次或在循环播放1首歌曲有这样的代码:
sound.addEventListener(Event.COMPLETE, onLoadComplete, false, 0,
true);
function onLoadComplete(evt:Event):void {
channel = sound.play();
var pauseSong:Number = channel.position;
channel.addEventListener(Event.SOUND_COMPLETE, soundCompleteHandler);
}
function soundCompleteHandler(e:Event):void {
channel = sound.play();
channel.addEventListener(Event.SOUND_COMPLETE, soundCompleteHandler);
}
,但我不能让代码回路负一打在播放列表中的所有歌曲,第二等,第一... 如何做到这一点?