.split() not working!

I am trying to load text into a Flash movie, and have that be an array.

the actions for my movie go somethin’ like this:

FRAME 1:

loadVariablesNum("arrayText.txt", 0);

FRAME 2:

stop();
MyArray = MyArray.split(",");
trace(MyArray);

That .txt file, “arrayText.txt” looks like this:


&MyArray=a,b,c,d&
&done=ok

When I test the movie, I can see the “MyArray” variable in a text box, but the output window gives me “undefined”…

Anyone know why this happens and/or how I can get around this??

Thanks!