How can I get a variable containing the number of lines in a textfield?

It seems simple but I can’t figure it out.

How can I get a variable containing the number of lines in a textfield?

It seems simple but I can’t figure it out.

You may have to do some simple division after finding out how much space one line takes up. You can get the height of a mulitline text field using Actionscript. You could probably even get the height of one line using AS and then use the result to divide the total height of your target field. The result would be apporximate, but after rounding, would accurately respresent the number of lines.

C