am using AS3 and i have one dynamic text filed. The properties Fontname "verdana" size "14" style "Bold"
it is shown the correct font in BOLD if there is no value if i assign values like
priceText.text=" Hello Wold"
It will not show the correct font properties am not getting the bold style :(
What need to c开发者_如何学编程hange?
alt text http://www.freeimagehosting.net/uploads/c37867425c.jpg
When you set the formatting for the TextField you need to set the defaultTextFormat property. If you don't do this, any new text will default back to the old setting.
am assuming priceText is a dynamic text box already present on stage. you have to change its properties
uncheck the AutoKern box to remove that property and use the Embed button to Embed the font properties like uppercase,lowercase,punctuation,numerals
I believe that if you'll try to make a "TextFormat" instance with the correct properties.. and apply the TextFormat instance on the TextField each time you change the text dynamically (apply it after you change the text).. It will work!
Good Luck!
精彩评论