You can retrieve the actual (text) height of the inner textfield (.label) of a TextArea instance:
TextArea.label.textHeight; Note that if you want to retrieve the textHeight right after setting/changing the TextArea.text, you'll have to wait a frame before the real textHeight becomes available. This is probably because the TextArea (as most v2 components) uses an invalidate() method which delays stuff. You'll probably also have to add a few pixels to the textHeight value to take the textarea borders into account. regards, Muzak ----- Original Message ----- From: <[EMAIL PROTECTED]> To: <[email protected]> Sent: Friday, November 04, 2005 9:45 PM Subject: [Flashcoders] Dynamically setting the height of the text areacomponent based on the content? > > Hi all! > > Is there a way to dynamically set the height of the text area component based > on > the content? > > What I would really like to 'capture' is the number of line returns and then > multiply that by the default "row" size of 22 to set the height. > > Setting the component height to the length is mis-leading at best. Say the > length returns 180 characters...the component height would not be 180 px..you > must account for how many lines of text and that is where I am getting fuzy... > > - Hope this makes sense... > > -- > Drue > Skyymap, Inc. _______________________________________________ Flashcoders mailing list [email protected] http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

