title: convert an integer to a string as3
body: <p><strong>How do I convert an integer to a string value?</strong>
  This must be easy. "Ya guys in SO are da best at explaining." I'm still working on these dumb counters.</p>
  
  <p><strong>NEED TO JOIN THIS TOGETHER</strong><br></p>
  
  <pre><code>//My counter project "sends to dynamic text field"
  var timer:Timer = new Timer(10);  
  var count:int = 0; //start at -1 if you want the first decimal to be 0  
  var fcount:int = 0; 
  
  timer.addEventListener(TimerEvent.TIMER, incrementCounter);  
  timer.start();  
  
  
  function incrementCounter(event:TimerEvent) {  
    count++;  
    //
    fcount=int(count*count/10000);//starts out slow... then speeds up 
    //
    var whole_value:int = int(fcount / 100); //change value 
    var tenths:int = int(fcount / 10) % 10;   
    var hundredths:int = int(fcount) % 10;   
  
    mytext.text = whole_value + " : " + tenths + hundredths;  
  } 
  </code></pre>
  
  <p><strong>ZEROS PLACEHOLDER</strong></p>
  
  <pre><code>//Code for adding "zero placeholders"
  function formatCount(i:int):String { 
  
      var fraction:int = i % 100; 
      var whole:int = i / 100; 
  
      return ("0000000" + whole).substr(-7, 7) + "." + (fraction &lt; 10 ? "0" : "") + fraction; 
  } 
  
  function test():void { 
      for (var i:int = 1; i&lt;100000; i += 3) { 
          trace(i + " -&gt; " + formatCount(i)); 
      } 
  } 
  </code></pre>
  
  <p><strong>Getting access of undefined property, myInt.toString();</strong></p>
  
  <pre><code>//joined together
      var timer:Timer = new Timer(10);  
      var count:int = 0; //start at -1 if you want the first decimal to be 0  
      var fcount:int = 0; 
  
      timer.addEventListener(TimerEvent.TIMER, incrementCounter);  
      timer.start();  
  
  
  
       myInt.toString();
      function incrementCounter(event:TimerEvent) {  
        count++;  
        //
        fcount=int(count*count/10000);//starts out slow... then speeds up 
        //
        var whole_value:int = int(fcount / 100); //change value 
        var tenths:int = int(fcount / 10) % 10;   
        var hundredths:int = int(fcount) % 10;   
  
        mytext.text = whole_value + " : " + tenths + hundredths;  
      }   
  
      function formatCount(i:int):String {  
  
          var fraction:int = i % 100;  
          var whole:int = i / 100;  
  
          return ("0000000" + whole).substr(-7, 7) + "." + (fraction &lt; 10 ? "0" : "") + fraction;  
      }  
  
      function test():void {  
          for (var i:int = 1; i&lt;100000; i += 3) {  
              trace(i + " -&gt; " + formatCount(i));  
          }  
      } 
  </code></pre>
  
  <p><strong>NO ERROR NOW, BROKE IT SOME OTHER WAY</strong></p>
  
  <pre><code>var timer:Timer = new Timer(10);  
  var count:int = 0; //start at -1 if you want the first decimal to be 0  
  var fcount:int = 0; 
  
  timer.addEventListener(TimerEvent.TIMER, incrementCounter);  
  timer.start();  
  
  function incrementCounter(event:TimerEvent) {  
    count++;  
    //
    fcount=int(count*count/10000);//starts out slow... then speeds up 
    //
    var whole_value:int = int(fcount / 100); //change value 
    var tenths:int = int(fcount / 10) % 10;   
    var hundredths:int = int(fcount) % 10;   
  ////////////// 
   function formatCount(i:int):String { 
  
      var fraction:int = i % 100; 
      var whole:int = i / 100; 
  
      return ("0000000" + whole).substr(-7, 7) + "." + (fraction &lt; 10 ? "0" : "") + fraction; 
  } 
  
  function test():void { 
      for (var i:int = 1; i&lt;100000; i += 3) { 
          trace(i + " -&gt; " + formatCount(i)); 
      } 
  } 
  //////////////
  mytext.text = formatCount(whole_value + " : " + tenths + hundredths); 
  
   // mytext.text = whole_value + " : " + tenths + hundredths;  
  }
  </code></pre>
  
  <p><strong>EXAMPLES</strong></p>
  
  <pre><code>// string to number
  var myString:String = "5";
  var myNumber:Number = Number(myString);
  
  // number to string
  var myNumber:Number= 5;
  var myString:String= String(myNumber);
  
  // string to int (integer)
  var myString:String = "5";
  var myInt:int = int(myString);
  </code></pre>