Skip to main content
Inspiring
Jan 8, 2009 1:35 PM UTC
Answered

How to get TextFlow text height?

Hi,

I am trying to get the text height of a TextFlow so I can resize its container accordingly and position other objects underneath dynamically, but I can't seem to find any way to get this.

Any help would be much appreciated.

Thanks
Nikos
This topic is closed to new replies. Start a new post to keep the conversation going.
rdermerCorrect answer
Inspiring
Jan 8, 2009 5:13 PM UTC
Take a look at contentWIdth/contentHeight on the controller. Assuming you have only one controller its availalable at textFlow.flowComposer.getControllerAt(0)

5 replies

rdermerCorrect answer
Inspiring
Jan 8, 2009 5:13 PM UTC
Take a look at contentWIdth/contentHeight on the controller. Assuming you have only one controller its availalable at textFlow.flowComposer.getControllerAt(0)
Translate
Nikos_Author
Inspiring
Jan 9, 2009 10:20 AM UTC
textFlow.flowComposer.getControllerAt(0).contentHeight does the job.

Thanks rdermer
Translate
Nikos_Author
Inspiring
May 13, 2009 4:56 PM UTC

textFlow.flowComposer.getControllerAt(0).contentHeight and textFlow.flowComposer.getControllerAt(0).contentWidth produce an error in the latest builds as  contentHeight/contentWidth are not properties of the ContainerController.

How would I get these?

thanks

nikos

Translate