views:

207

answers:

4

Hi, 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 change?

alt text

A: 

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.

grapefrukt
Nop its not working. :(
coderex
A: 

Are you creating the text field on the stage or with code? If it's through code could you post the code you're using?

Chris Armstrong
A: 

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

AdityaGameProgrammer
A: 

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!

Yitschak