Hello, I am trying to set variables from an array. I want my variables to be named Pic1, Pic2 etc. (according to how many values are in the array). How do I get this to work? Any help is appreciated.
This is code from the “parsing external array data” tutorial
files = new Array();
lv = new LoadVars();
lv.onLoad = function() {
fl = this.filelist;
files = fl.split(",");
c = files.length-1;
for (i=0; i<c; i++) {
this["Pic"+i] = files*; //<----not working
}
};
lv.load(“http://myfile.php”);
stop();