that’s because the actions inside onLoad() {} are triggered once the text file is loaded but the ones outside are triggered immediately. So the trace outside the onLoad() {} is triggered before the text file is even loaded…
Oh. Is there anyway i can load the text file first, get the array filled, then let the rest of the actionscripts (like the trace command) access the array?