In a previous example, “Determining the number of lines in a TextArea control in Flex”, we saw how you could get the number of lines in an MX TextArea control by using the getTextField()
method (in the mx_internal
namespace) and the numLines
property.
The following example shows how you can get the number of lines in a Spark RichEditableText control in Flex 4 by using the textContainerManager
property (in the mx_internal
namespace) and the numLines
property.
Full code after the jump.
Continue reading Determining the number of lines in a Spark RichEditableText control in Flex 4