title: How to move cursor automatically to next line after writing 30 characters in textarea using as3?
body: <p>I need to know about to move cursor automatically to next line after writing 30 characters in textarea using as3?</p>
  
  <pre><code>tf.wordWrap = true;
  tf.text= '';
  tf.addEventListener(Event.CHANGE,textInputHandler);
  
  function textInputHandler(e:Event=null):void
  {
      if (tf.text.length == 29)
      {
          var str:String = tf.text;
          tf.text = str + "\n\n";
      }
  }
  </code></pre>