height="500">
import mx.controls.textClasses.TextRange
public function alterText():void {
var tr1:TextRange = new TextRange(ta1, false,ta1.text.indexOf("is", 0), ta1.text.indexOf(".", 0));
tr1.htmlText="italic HTML text"
var tr2:TextRange = new TextRange(ta1, true, ta1.text.indexOf("t",0), ta1.text.length-1);
}
height="100">
this is a test.