Hey,
I'm having trouble making an array out of a variable loaded from a textfile.
The variable in the textfile is "stuff="1,2,3,4,5,6. . ." etc etc.
i can load the variable, but for some reason can't figure out how to split it into an array.
i know that
stuff.split(",");
should do something, but I'm stuck. Any help would be appreciated, thanks.
Never mind. Now
local=stuff.split(",");
Seems to work just fine. gremlins I guess.
If you have your variable in Flash:
stuff = "1,2,3,4,5,6";
Then to turn it into an array:
stuff = stuff.split(",");
Hope that helps.
Zoops. I was too slow on the draw on that one.
Glad you got it worked out.
Sorry, you must be a member to post to a conversation. Either
log in or
sign up
to get involved.