Look into TextFormat.getTextExtent() as well.
-----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Alan MacDougall Sent: Monday, August 06, 2007 4:41 PM To: flashcoders@chattyfig.figleaf.com Subject: Re: [Flashcoders] Lines in textArea Volker Scarpatetti - Advertis Interactiva wrote: > Hi ! > > Is there a way to know how many lines are written in a textArea component > when filling it up dynamically ? > > > This is not a perfect solution, but if you know the TextField.textHeight when there is a single line, you should be able to do a bit of division (possibly compensating for leading and such) to figure out the number of current lines. _______________________________________________ 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 _______________________________________________ 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