title: How to adjust numToChar to support any key (AS3)
body: <p>I have a flash conversion function that I call like this:</p>
  
  <blockquote>
    <p>var key:String=numToChar(keyboardEvent.charCode);</p>
  </blockquote>
  
  <p>currently the function (see below) supports limited US character set, how to enhance this function as much as possible easily without hardcoding? I want to make the function to support all standard western keycodes (available in US INTERNATIONAL KEYBOARD) such as $€!#%;;!üÜÅÄÖéÉíÍ</p>
  
  <p>The function is:</p>
  
  <pre><code>        private function numToChar(num:int):String {
  if (num &gt; 47 &amp;&amp; num &lt; 58) {
      var strNums:String = "0123456789";
      return strNums.charAt(num - 48);
  } else if (num &gt; 64 &amp;&amp; num &lt; 91) {
      var strCaps:String = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
      return strCaps.charAt(num - 65);
  } else if (num &gt; 96 &amp;&amp; num &lt; 123) {
          var strLow:String = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
      //var strLow:String = "abcdefghijklmnopqrstuvwxyz";
      return strLow.charAt(num - 97);
  } else {
      return num.toString();
  }
  </code></pre>