Ok, I’m trying to get better with my AS skills, and have run into a little problem with arrays. Heres what happens, I load a txt file, flash takes one of the strings from the file, and spilts it into an array. Here is what I have:
loadcaptions = new LoadVars();
loadcaptions.load("pics/captions.txt");
loadcaptions.onLoad = function(){
captions = this.info
captions.split("~");
trace(captions);
textbox.text = captions[1];
};
the file’s contents look like this:
info=this is thing 1~this is thing 2~this is thing 3~
problem is textbox displays nothing. what am I doing wrong?