I was recently working on a project where .getTextExtent() would have come handy, but like for others, it did not work for me. I dropped the issue at that time, but have been thinking of trying to create an auto-size field off the stage with the same text style parameters as the textInput component, then copy characters (from the input component as they're typed) to the auto-sized field, then measure the width of the auto-sized field. If the width exceeds the maximum allowed pixel-width, then disallow further typing into the component. I think it should work... has anyone tried this?
Ville -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of janosch Sent: Thursday, June 22, 2006 11:09 To: Flashcoders mailing list Subject: Re: [Flashcoders] getTextExtent weirdness Hello, i always use textfield.autoSize, and it works fine. But you have to be carefull, to set the correct styles to the textfield, before measuring. Janosch _______________________________________________ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com