title: How can I convert a string to a char array in ActionScript 3?
body: <p>How do you convert a string into a char array in ActionScript 3.0?</p>
  
  <p>I tried the below code but I get an error:</p>
  
  <pre><code>var temp:ByteArray =  new ByteArray();
  temp = input.toCharArray();
  </code></pre>
  
  <p>From the error, I understand that the toCharArray() function cannot be applied to a string (i.e in my case - input). Please help me out. I am a beginner. </p>