flash? (HI UNFIT...)

Out of context: Reply #6

  • Started
  • Last post
  • 16 Responses
  • kpl0

    if I knew how to use substr() from the top of my head...I'd tell you the syntax...

    but can you set up a while loop where while the first character of a string was a space (or whatever character), then have the string equal the 2nd to last character of the string?

    ie
    while (string.substr(0,1) == " ") {
    string = string.substr(1,string._length);
    }

    or something like that.

View thread