The textWidth and textHeight propery of a TextField basically give you the width and the height. You can go from there. See truncateToFit() in mx.core.UITextField.
On 4/23/07, Shaun <[EMAIL PROTECTED]> wrote: > 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 > > > > -- > Flexcoders Mailing List > FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt > Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com > Yahoo! Groups Links > > > >

