Did a search on this. Found 26 articles. Read through most of them and still couldn’t find the answers. Tried hacking them to my particular needs but still couldn’t get it right.
I’d like to load arrays from a .txt file. This data will then be used to dynamically pick images and give info about them.
I’m setting up the array as [name,title,thumb,image,link]. Here is a variable from my artist.txt file (guessing on the formatting):
artist1=“Joe Schmoe,Work Of Art,joe_sm.jpg,joe.jpg,http://www.joe.com”
Here is the actionscript code (once again, guessing):
loader = new LoadVars();
loader.onLoad = function() {
_root.importedArray = this.arrayString.split(",");
};
loader.load(“artist.txt”);
name = artist1[0];
title = artist1[1];
thumb = artist1[2];
image = artist1[3];
link = artist1[4];
Any help would be greatly appreciated.
Thanks,
Lex