Not really.  TextField is the only way to get text.  I suppose you could
generate a bitmap from a textfield and copy character, but that's a  lot
of work.

 

You only have to use createInFontContext if you have multiple SWFs and
are embedding fonts in different SWFs.  Otherwise, generate a TextField
and set its textFormat.

 

________________________________

From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of Matt Maher
Sent: Monday, May 12, 2008 7:08 AM
To: [email protected]
Subject: [flexcoders] Drawing letters -- sprites?

 

I have a project where I am drawing circles and line and such directly
onto a component extending a UIComponent (all actionscript)

I've had problems finding examples of "drawing letters" (or font
characters).

The best I've been able to come up with is to use "IUITextField"
objects and place those on the stage... but this is terrifically
limited. Dynamically changing the "font" size and such becomes a
really big issue.

var textField:IUITextField;
textField = IUITextField(createInFontContext(UITextField));
textField.text = _value.toString();

Are there any examples where I can "draw" the sprites for the letters
themselves?

 

Reply via email to