3 Replies Latest reply on Nov 17, 2006 7:15 AM by arunbe

    Using LoadVar in a for loop?

      I have a list of filenames in an array pointing to data files on my hard drive. I'm trying to use a for loop to sequentially extract each filename from the array and load the file into an new array for later use. I have an onLoad event handler checking whether each file has been loaded.

      Result: It looks like the loop goes through all of the filenames but only the last index gets loaded and pushed on to the new array i.e. all indices of the new array contain the data from the last loaded file.

      Here is my code---can someone clue me as to what's wrong?