Yep, htmlText is a wild little beasty, best to stay out of the weeds and never even look at it... there in madness lies!
Try setting the defaultTextFormat before setting the htmlText, then use field1.htmlText to set field2.htmlText to ensure they are identical.
PHP Code:var htmlText:String = "Plain text. <b>This is bold, <i>this is bold and italic,</i></b><u><i> This is italic and underlined.</i> Underlined text here.</u> More plain text";
field1.defaultTextFormat = new TextFormat( "Gill Sans MT" );
field1.htmlText = htmlText;
field2.htmlText = field1.htmlText;




Reply With Quote