title: save text of textarea and reuse it to replace text in textarea
body: <p>Is it possible to save text of textarea (flash 10, as3, cs5) in some variable or so and with its textformat (more than one color) and then reuse it to replace text in textarea?</p>
  
  <p>I tried saving htmlText of textarea but the problem is when i replace it in textarea <p> tags causes problem. There will always be another extra line.</p>
  
  <p>If anyone wants to view p tags problem try following. Just click on text and then move your down arrow key, cursor will go to next line.</p>
  
  <pre><code>import fl.controls.TextArea;
  
  var txtHTML:TextArea = new TextArea();
  txtHTML.move(0,0);
  
  var default_format:TextFormat = new TextFormat();
      default_format.font = "Arial";
      default_format.bold = false;
      default_format.align = "center";
      default_format.color = 0xFFFF00;
      default_format.size = 14;
  
  var field:TextField = txtHTML.textField;
      field.defaultTextFormat = default_format;
      field.setTextFormat(default_format);
      field.alwaysShowSelection = true;
      field.background = true;
      field.type = 'input';
      field.multiline = true;
      field.backgroundColor = 0x777777;
      field.embedFonts = true;   
      txtHTML.htmlText = '&lt;P ALIGN="CENTER"&gt;&lt;FONT FACE="_sans" SIZE="14" COLOR="#FFFF00" LETTERSPACING="0" KERNING="0"&gt;ASDF&lt;/FONT&gt;&lt;/P&gt;';
      field.x = 0;
      field.y = 0;   
      field.width = 400;
      field.height = 200;
      field.text = "";
  
  addChild(txtHTML);
  </code></pre>
  
  <p>Is there a way to do this?</p>