UIComponent has measureText() and measureHTMLText() methods.
 
- Gordon

________________________________

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Shaun
Sent: Monday, April 23, 2007 7:14 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] How to measure text?



Does anyone know of an equivalent to the TextFormat.getTextExtent() 
method of AS2 in AS3?

I have a fixed size box that I place text in. If the text doesn't fit, 
I want to programmatically adjust the font size so that it does (if 
possible).

So does anyone know a way of getting the size of a string of text that 
accounts for the format/font of the text?

Thanks,
shaun



 

Reply via email to