theflashbum / fcss

Flash Cascading StyleSheet Library
fcss.flashartofwar.com
83 stars 13 forks source link

applying a style on an IDE textfield #17

Open leo-cheron opened 13 years ago

leo-cheron commented 13 years ago

Applying a style on a textfield built in flash IDE does not work if the assigned text is defined as htmlText.

eg:

[...] var style : IStyle = _styleSheet.getStyle("#myStyle", ".global"); textFielApplicator.applyStyle(myTf, style); myTf.htmlText = "my text"; [...]

In this case, the text won't be displayed, as if font has not been embed. myTf.text= "my text" definitly works in this same case.