TwelvestoneFlash

make an Array from a long variable?


Sign in

  • Waiting for Godot ( 730 k posts )
    Just conversation.
  • Thunder Dome ( 23 k posts )
    Photoshop Tennis and Collabs.
  • Photography ( 5.1 k posts )
    For all you shutterbugs, sh...
  • Flash ( 18 k posts )
    ActionScripting to tweens, ...
  • Front End ( 5.9 k posts )
    general front end design an...
  • Back End ( 9.7 k posts )
    serverside scripting, progr...
  • Projects and Theory ( 12 k posts )
    This forum is for discussio...
  • FAQ ( 269 posts )
    All those nagging questions...
  • Design ( 17 k posts )
    graphics & all aspects of g...
  • Purgatory ( 3.6 k posts )
    12stone Jail, feel free to ...
shuteye
 
2003-02-01

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.

shuteye
 
2003-02-01

Never mind. Now

local=stuff.split(",");

Seems to work just fine. gremlins I guess.

dunderpate
 
2003-02-01

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.k

dunderpate
 
2003-02-01

Zoops. I was too slow on the draw on that one.

Glad you got it worked out.k

Sorry, you must be a member to post to a conversation. Either log in or sign up to get involved.
TwelvestoneFlash

make an Array from a long variable?