Skip to main content
Participant
September 5, 2008
Question

Text Format problems

  • September 5, 2008
  • 2 replies
  • 338 views
I'm creating a scrolling text field using AS3 only. There's probably a better way to do this with an actual text field but for now, that's how I'm approaching it. The scrolling part isn't the problem, I've got that to work. It's the styling of the text that I can't get to work. When I use TextFormat, it doesn't appear to affect anything; (look below) such as the font is not Arial, it's like Times Roman.

What am I doing wrong? And do I need to embed the font? I'm actually not going to be using Arial, I just used that to test it out. Thanks.

This topic has been closed for replies.

2 replies

kglad
Community Expert
Community Expert
September 6, 2008
is text assigned to your textfield when you execute setTextFormat()?

no.
kglad
Community Expert
Community Expert
September 5, 2008
use setTextFormat() for text that's already be assigned to your textfield. use the defaultTextFormat property for new text.
Participant
September 5, 2008
I'm sorry, I'm not sure if I understand! You said "use setTextFormat() for text that's already be assigned to your textfield" and I thought that that is what I did? i.e. bio_txt.setTextFormat(styleText); ?