I'm currently looking into using the TextLineMetrics class for this. If your object has a getLineMetrics() method, TextLineMetrics.width might be an option.
--- In flexcoders@yahoogroups.com, "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 >