Groups | Blog | Home
all groups > flash actionscript > august 2004 >

flash actionscript : LoadVars & arrays


scourtaud
8/28/2004 5:44:43 PM
Hi, I am desperatly trying to load ? text file containing ?l?ments of an array
into my flash movie. Nothing works. If someone could give me advice... What
code should I use? How should the info be writen in the text file?

Thanks in advance
Sebastien
kglad
8/28/2004 8:10:57 PM
you can't load an array from a text file. however, you can load a string
variable with a delimiter that you use in flash to parse into an array. for
example, in your text file:

myvar=element1,,element2,,etc

in flash you load this text file and then split myvar on the double commas
into an array containing element1,element2,etc.
scourtaud
8/28/2004 8:20:04 PM
Thanks...

I tried this aftre posting my message and it worked great.
kglad
8/28/2004 8:33:21 PM
AddThis Social Bookmark Button