**HELP** Flash Actionscripting

Out of context: Reply #7

  • Started
  • Last post
  • 14 Responses
  • JamesEngage0

    you want to take the rounded number turn it into a string, an use substr, or substring, to construct a new string...can't remember which one it is... but it's not hard...

    somelike origString.substr(0,3) will take the first three digits...

    at (3,3) will take the next three.... so you could probably do something like

    outputString = origString.substr(0,3) + "," + origString.substr(3,3)+ "," + origString.substr(6,3)

    you'll need to play around with it... and amke it cool by knowing that a four digit number has it like 1,000 .... so infact you want to work from the end of the string in threes...

    quite a good puzzle, if I had time I'd do it for you... but I haven't, but good luck :)

View thread