Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Dynamic Text Embed Fonts 2

Status
Not open for further replies.

sherwoodclark

Programmer
Oct 17, 2006
20
US
I can't get dynamic text to work with embedded fonts.
I put a dynamic text field, 'my_txt' on the stage and entered 'Sample Text' into the text field with Arial 12 pt bold. I then clicked on 'Embed...' and included upper and lower case characters. The text shows up fine when I test movie; however, if I change the text with Actionscript:

my_txt.text = 'New Text';

the text disappears. Even if I reassign 'Sample Text' to the text field:

my_txt.text = 'Sample Text';

it does not display.

What am I doing wrong?
 
Yes, I had bold enabled in the authoring environment.

Removing that fixed the problem.

Thanks!!!
 
One last question.

How do I bold the text? If I issue a setTextFormat in actionscript with a bold TextFormat, the text disappears again. I assume I have to embed bold fonts, but I'm not sure how to do that.

Thanks.(-:
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top