[flexcoders] Re: TextField - how does it calculate the number of lines?

2008-05-06 Thread Dmitri Girski
Anyone? --- In flexcoders@yahoogroups.com, Dmitri Girski [EMAIL PROTECTED] wrote: Question to Alex and the rest from Adobe gang: Why the TextField does not include in numLines the number of lines which ends up with CR or LF? I.e. if you have a text: Mary has a little lambCR (1)

RE: [flexcoders] Re: TextField - how does it calculate the number of lines?

2008-05-06 Thread Alex Harui
Sorry, haven't gotten around to it yet. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Dmitri Girski Sent: Tuesday, May 06, 2008 8:21 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: TextField - how does it calculate the

[flexcoders] Re: TextField - how does it calculate the number of lines?

2008-05-06 Thread Dmitri Girski
No problem, Alex! I just found this thing while printing the contents of TextArea and I am not sure is this a bug or not. Thanks! Dmitri. --- In flexcoders@yahoogroups.com, Alex Harui [EMAIL PROTECTED] wrote: Sorry, haven't gotten around to it yet.

RE: [flexcoders] Re: TextField - how does it calculate the number of lines?

2008-05-06 Thread Alex Harui
I get 3 using \n, and 5 using \r\n with this test: package { import flash.display.*; import flash.events.*; import flash.filters.*; import flash.geom.*; import flash.net.*; import flash.system.*; import flash.text.*; import flash.ui.*; import flash.utils.*; import flash.xml.*;