6 Replies Latest reply on Jun 11, 2007 8:41 AM by tricky_ricardo

    How to split an integer value

    tricky_ricardo Level 1
      Hi all,

      I'm new to Actionscript, and am trying to figure out how to split up an integer value.

      For instance, I have an integer which is dynamically generated such as 285.43. I need to split this number up so I can use each number individually (i.e. 2,8,5,4,3)

      Is the best way of doing this to convert the Integer to a String, spliting it up, and then converting back to an Integer?

      Any help would be greatly appriciated!

      Many thanks, Rich