[FMX] String to Array

Hello,

(Using Flash MX)

I’m wondering if theres a way I can turn a variable of strings (separated by commas) into an array?

I’m using the loadVars object to import variables from a text file that I’d like to import to flash as an array.

For example if the variable I import from the text file looks like this:

&myVar=charlie,dog,cat,test&

I’d like to get it into an array in Flash like this

myArray = new Array[“charlie”,“dog”,“cat”,“test”];

Is there any way to do that? :rocker:

Thanks!