Skip to main content
Inspiring
August 13, 2010
Answered

embedFonts = true;

  • August 13, 2010
  • 1 reply
  • 525 views

I've embed the Arial font and exported for actionscript but when I insert the line "newszlatest.embedFonts = true;" the text disappear. What's causing this?

this.createTextField("scroll_txt", this.getNextHighestDepth(), 143, 170, 648, 233);

this.createTextField("newszlatest", this.getNextHighestDepth(), 143, 170, 648, 233);

newszlatest.multiline = true;

newszlatest.wordWrap = true;

newszlatest.textColor = 0xFFFFFF;

newszlatest.embedFonts = true;

newszlatest.font = "Arial";

This topic has been closed for replies.
Correct answer kglad

font is a textformat, not textfield, property.  create a textformat instance  and assign its font property and then use one (or both) of the textfield methods,  setTextFormat() and/or setNewTextFormat() to assign your textformat instance to your textfield.

1 reply

kglad
Community Expert
kgladCommunity ExpertCorrect answer
Community Expert
August 13, 2010

font is a textformat, not textfield, property.  create a textformat instance  and assign its font property and then use one (or both) of the textfield methods,  setTextFormat() and/or setNewTextFormat() to assign your textformat instance to your textfield.

Inspiring
August 13, 2010

Thank you Kglad. 

kglad
Community Expert
Community Expert
August 13, 2010

you're welcome.