Skip to main content
Participating Frequently
August 3, 2009
Question

How to tell if text overflows the last controller

  • August 3, 2009
  • 1 reply
  • 617 views

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 has been closed for replies.

1 reply

August 4, 2009

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.

Participating Frequently
August 4, 2009

Of course thank you very much.