title: Move cursor inside textarea to end
body: <p>I have a text area control on a form that is supposed to accept 5 digit US zip codes. I have assigned the control a keyUp event that checks the number of characters entered until it reaches 5 then forces a new line. </p>
  
  <pre><code>public function forceNewLine(event:KeyboardEvent):void
  {
      var maxLineChars:int = 5;
      var currentLine:int = 1;
      var numChars:int;
  
      numChars = (txtList.text.length);
      currentLine = Math.round(txtList.text.length / 6);
  
      if (numChars == (maxLineChars * currentLine))
      {
          txtList.text = txtList.text + "\n";
          txtList.setCursorPosition() 
          //This is not a function I have defined but I think I need too..
      }
  }
  
  &lt;s:TextArea id="txtList" keyUp="forceNewLine(event)"/&gt;
  </code></pre>
  
  <p>It works fine except that when the new line is inserted, the cursor moves to the beginning of the textarea. I want it to go to the end.</p>