hi, i have an array of .SWF files tht are parsed from xml using e4x , i loaded them into the loader obj, im listening to loadonComplete event. then i m able to play only the last file from the arraycollection.how to play the files from 1st to last.i have added only 2 files in xml.here is my code.plz help.
private function resultHandler(event:ResultEvent):void { var xml:XMLList=XMLList(event.result).children();
for each(lists in xml) { listofVideos=lists.list;
for(var i:int=0;i<listofVideos.length();i++)
{
videoAC.addItem(listofVideos[i].@listvideo);
var url:String=videoAC[i];
request=new URLRequest(url);
trace(url)//2files in xml are stored into url
loader.contentLoaderInfo.addEventListener(Event.COMPLETE,completeHandler);
loader.load(request);
//currentSWF=loader.content;
}
}
}
private function completeHandler(event:Event):void { //how to call the .swf files, after playing one .swf file it shud // play the 2nd .swf file.
myComponent.addChild(event.currentTarget.content);
myContainer.addChild(myComponent);
}