Hi,

I have an mx:Text control and I want to know the length of the last line. I
can do this with the following:

  var metrics:TextLineMetrics = myTextControl.getLineMetrics
(indexOfLastLine);

Trouble is, I don't the right value for 'indexOfLastLine' because I don't
know how many lines there are in the text control. I'm assuming I'm missing
something obvious, can someone tell me how to get the number of lines?

Thanks,

Paul.

Reply via email to