Please see whats wrong with this code:
onLoad=function()
{
my_text=new LoadVars()
my_text.load("C:\\Documents and Settings\\Wrkspace\\Desktop\\flash_wordlist.txt");
my_wordlist="";
}
my_text.onLoad=function(success)
{
if(success)
{
my_wordlist=(this.var_wordlist).split(" ");
trace(my_wordlist)
}
}
the trace dosent showup at all…by the way, this is in the first frame of the timeline, and i am trying to load a wordlist and then use the words in my program separately.
Is it because flash loads the text file slowly? and what is the solution to what i am trying to do?
PS: I am using flas8, as2