SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Zealot
    Join Date
    Jan 2002
    Location
    london
    Posts
    110
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    remove certain characters from array

    Hello

    how do I remove certain character from a var loaded from a text file then build an array?

    let's say the text file looks like:

    var= 1: 2: 3: 4:

    How could I remove the ': ' (colon and space), then put the remaining numbers into an array?

    I was doing it in MX before using .split but now I need to do it in Flash 5, any ideas much appreciated.

    Thanks
    L
    give me all your lentils

  2. #2
    SitePoint Zealot
    Join Date
    Mar 2002
    Location
    New York, NY
    Posts
    170
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    split is functional in flash 5 as well

    Code:
    myArray = var.split(":");
    Better-Barter.com
    Logo store full of unique, professional identities
    perfect for you or your client!

  3. #3
    SitePoint Zealot
    Join Date
    Jan 2002
    Location
    london
    Posts
    110
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by zing
    split is functional in flash 5 as well

    Code:
    myArray = var.split(":");
    oh - must be something else then, thanks anyway for your post.
    give me all your lentils


Bookmarks

Posting Permissions

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