In the Flash IDE, I have made a dynamic text field bold. When the Flash is compiled and run, the bold styling disappears. How do I retain the bold开发者_StackOverflow社区 styling?
Top: IDE
Bottom: SWF
You're seeing only the characters that were in the TextField initally, because they are automatically embedded, and you have the font lookup set to something other than "Use Device Fonts".
To fix the missing chars, change the font lookup to "Use Device Fonts", or embed both normal and bold "Arial".
The top TextField is not bold because Flash Pro sets the font style only on the text you entered at design time. You can fix it by using textField.htmlText = '<b>Bold Text</b>'
instead of textField.text = 'Bold Text'
.
精彩评论