A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: converting a comma-delimited string to an array??

  1. #1
    www.intensewd.com
    Join Date
    Apr 2002
    Location
    Australia
    Posts
    450
    hi guys,

    i'm working on an mp3 player (had to join the trend) but of course, me being me, i've got one that'll eventually read files locally :P....wihtout needing IIS or Apache or anything other than windows


    anyway,

    after a million lines of functions turning %20's and all of that into something legible, i've reached this point with the code:

    50 Cent (Feat. Destiny's Child) - Thug Love.mp3,Faithless - God is a DJ.mp3,Faithless - Insomnia.mp3

    the mp3 names are now a comma-delimited string, but how do i make this string an array?

    suggestions are more than welcome...
    Ben


  2. #2
    Senior Member
    Join Date
    Jul 2000
    Posts
    336
    Not sure exactly how to answer, but I use something like this to split pipe-delimited strings all the time.

    ArrayName = StringName.split("|");

    so I imagine you could switch the | with a comma

    ??

    .fe.

  3. #3
    www.intensewd.com
    Join Date
    Apr 2002
    Location
    Australia
    Posts
    450
    you're a champion final_eternity...

  4. #4
    Senior Member
    Join Date
    Jul 2000
    Posts
    336
    I try.

    .fe.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center