TextFields имеет 2px желоб , поэтому это может сбить вас с толку.
package
{
import flash.display.Sprite;
import flash.text.TextField;
import flash.text.TextFieldAutoSize;
import flash.text.TextFormat;
[SWF(frameRate="30", backgroundColor="#FFFFFF", width="500", height="500")]
public class TextfieldHeight extends Sprite
{
public function TextfieldHeight()
{
var textFormat:TextFormat = new TextFormat();
textFormat.size = 11;
textFormat.font = "Georgia";
var htmlTextField:TextField = new TextField();
htmlTextField.setTextFormat( textFormat );
htmlTextField.width = 250;
htmlTextField.border = true;
htmlTextField.wordWrap = true;
htmlTextField.autoSize = TextFieldAutoSize.NONE;
htmlTextField.htmlText = '<a href="http://www.google.com">Lorem ipsum dolor</a> sit amet, consectetur adipiscing elit. Aliquam sodales, eros at convallis viverra, risus mauris euismod tortor, ac imperdiet sem augue vitae risus. Morbi ut sem neque. Vestibulum accumsan posuere augue, eu consectetur nibh porttitor eget. Sed suscipit sodales dui id pharetra. Vivamus quis hendrerit lectus. Vivamus interdum, felis a convallis dictum, libero erat aliquet massa, non placerat neque augue quis lacus. Aliquam viverra sem ultrices leo lacinia eu dignissim dolor ullamcorper. Etiam ullamcorper tincidunt velit, a vulputate sapien consequat quis.';
htmlTextField.height = htmlTextField.textHeight + 4;
this.addChild( htmlTextField );
}
}
}