[SOLVED] Embedding bold font in AS3 Flash dynamic field


I has going insane trying to make this work… when you have a Dynamic TextField in flash, and you use HTML text with it, to make the itallic and bold fonts work you have to:

  1. embed each variation of the font.
  2. In the flash ide, type “bold itallic normal” inside the Dynamic TextField and give a bold style to the bold word, an itallic style to the itallic word and leave the other normal…

Now, when you set the HTML using AS3, the <b></b> and <i></i> tags will work as espected using the embeded fonts.

Idk why, but if the TextField doesn’t contains a bold font it wont show bold text… this is probably a bug or something…

PS: im using Flash CS6. Hope this helps someone…

Advertisements