Skip to main content
Inspiring
January 8, 2009
Answered

How to get TextFlow text height?

  • January 8, 2009
  • 1 reply
  • 2091 views
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 has been closed for replies.
Correct answer rdermer
Take a look at contentWIdth/contentHeight on the controller. Assuming you have only one controller its availalable at textFlow.flowComposer.getControllerAt(0)

1 reply

rdermerCorrect answer
Adobe Employee
January 8, 2009
Take a look at contentWIdth/contentHeight on the controller. Assuming you have only one controller its availalable at textFlow.flowComposer.getControllerAt(0)
Nikos_Author
Inspiring
January 9, 2009
textFlow.flowComposer.getControllerAt(0).contentHeight does the job.

Thanks rdermer
Nikos_Author
Inspiring
May 13, 2009

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