Skip to main content
Participating Frequently
Aug 3, 2009 8:19 PM UTC
Question

How to tell if text overflows the last controller

I am looking for a method to determine if there is still more text beyond what is displayed by the last controller in a text flow. I do not want to display it only know if it exists programmatically.

This topic is closed to new replies. Start a new post to keep the conversation going.

2 replies

Aug 4, 2009 7:56 AM UTC

Something along these lines should do:

var lastContainer:ContainerController = textFlow.flowComposer.getControllerAt(numControllers - 1);

var hasOverflow:Boolean = (lastContainer.absoluteStart + lastContainer.textLength) > textFlow.textLength;

If scrolling is enabled for the controller, you could probably also look at whether controller's content height is greater than compose height.

Translate
Participating Frequently
Aug 4, 2009 1:57 PM UTC

Of course thank you very much.

Translate