";"delimited variable to XML or dataProvider help

Im currently working on a project utilizing MX 2004 Pro and FSP. I use the method “getfilelist_del” to return a variable result that is delimited with “;”.

Im having the hardest time trying to figure out how to loop thru the result data to extract each value and return it to a dataprovider and/or convert it to an XML doc.

here is some code:

 
getFiles_btn.onRelease = function() {
// Opens Window Browser
fscommand("flashstudio.browsefolder","folder");
// Returns results to var "files"
fscommand("flashstudio.getfilelist_del","folder,\"*.mp3\",files,\";\"");
}
// Doesnt do squat
//songlist_lb.dataProvider = files;
myDP = new Array();
songlist_lb.dataProvider = myDP;
for (var i=0; i<files.length; i++) {
myDP.addItem({label: files*, data: files*});
}

senocular, if you read this, I know you can do it, you can do anything, someone please help me. :slight_smile:

nevermind, I got it figured out…