PDA

View Full Version : Dynamic TextField/Anti-alias and html tag problem



Didi32
August 28th, 2008, 12:08 PM
Hi,

It's been a while I'm trying to embed fonts in a straightforward way but it doesn't seem to work. I have a dynamic text field for which I apply (from the Flash interface) the Anti-Alias for Readability. But after that, when I use dynamicTxtField.htmlText = "<B>Bold words</B>"; These words do not appear in the textField anymore, If I take off the B tags, they appear again. Anyone could help me about this? Thanks. Didi

kipty
August 28th, 2008, 12:16 PM
have you embeded the bold version of the font also?

Didi32
August 28th, 2008, 12:19 PM
Hi,

I'm not sure about this, in the "Embed" dialog box, I don't see any Bold version. How do I embed bold?
Thanks

kipty
August 28th, 2008, 12:28 PM
depends on how you are embedding fonts, if you are using the flash IDE, then the easiest way is to add two textfields on the stage (off the visible part, so you wont see them when the movie is played)

embed the font using the dialogue box
make a copy of this textfield and set the text to bold, this will embed the bold version

Didi32
August 28th, 2008, 12:31 PM
Thanks Kipty, your quick fix worked!!