A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Seperating digits using flash substrings

  1. #1
    Silentyper
    Join Date
    Oct 2002
    Location
    Cincinnati, Ohio
    Posts
    59

    Seperating digits using flash substrings

    Hello All.

    I am trying to retrieve data from a server and display it in a font that does not space dynamically the way that my boss, the art director wants it to look. The server will send me 2 and three digit numbers thaty need to be displayed, but because of graphical issues, each digit (first, second, or third) needs to be placed in different dynamic text boxes. I asked the programmer to break up the number in asp and send it as three different variables for me to rearrange in flash but this is a no go. SO i need someone to show me how to "seperate the digits using substings" any takers?

    any help would be appreciated.

    thanks.

  2. #2
    Senior Member Dricciotti's Avatar
    Join Date
    Aug 2002
    Posts
    2,988
    String.substr() is the function you want. It is pretty strait forward to use. Here is a quick link I found on macromedia'a site on its syntax. Here

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