Hi, I’m using a fully functional PHP script to read a couple of imagefilenames from a directory.
Doing that I get a string printed looking like this:
&images=bgm_1.jpg,bgm_2.jpg,bgm_3.jpg,bgm_4.jpg,bgm_5.jpg,ethos_1.jpg,ethos_2.jpg,ethos_3.jpg
I’m trying to load this string into my flash movie using the AS lines below, making a list of the current imagefiles.
But nothing is really happening and I don’t get any errors.
What’s wrong? the PHP script is really working fine.
var myLv = new LoadVars();
myLv.load("http://www.mikaelbjorkefall.com/dev/flash/filetree/getTree.php");
myLv.onLoad = function() {
myImages = myLv.images.split(",");
};
var outputStr = "";
for (i=0; i<myImages.length; i++) {
outputStr += myImages*+"
";
}
_root.fileList.text = outputStr;
Thanks for your help!