Hello,
I’ve got some problems with a dynamic textfield using an embedded font and displaying it as htmlText. Been googling around, but I don’t seem find an answer.
First I create my textformat:
var fmtText:TextFormat = new TextFormat();
fmtText.font = "Font";
fmtText.leading = 4;
fmtText.size = 11;
fmtText.color = 0x000000;
Then I createTextField
_root.container.createTextField("txt", _root.container.getNextHighestDepth(), 50, 142, 420, 1);
_root.container.txt.multiline = true;
_root.container.txt.wordWrap = true;
_root.container.txt.autoSize = true;
_root.container.txt.embedFonts = true;
_root.container.txt.selectable = false;
_root.container.txt.html = true;
_root.container.txt.setNewTextFormat(_root.fmtText);
and then, using htmlText, I insert the text into the textField. But the text doesn’t show. If I remove _root.container.txt.html = true; it all works fine, but I can se all the <br> and I don’t want that! Does anybody know what’s wrong?