Skip to main content
June 3, 2009
Answered

Problem of contentHeight with Latest Build 442

  • June 3, 2009
  • 2 replies
  • 1331 views

Hi,

I am having a problem to access contentHeight from controller.

The syntax is below.

private var _controller:ContainerController;

var newHeight:Number = _controller.contentHeight;

It throws an error now, I was previously using IContainerController with Build 370. It was working fine but now as I switched to 442 with ContainerController it shows error.

Please suggest how I can access this.

Regards,

Rajesh

This topic has been closed for replies.
Correct answer mxc

Hi

Yes strange to remove this handy reference to height.

The way to achieve this now is to use

textFlow.flowComposer.getControllerAt(0).getContentBounds().height

or if you have a variable for your Controller then just use that to getContentBounds().height

regards

Micheal

2 replies

Participant
October 29, 2020

rajeshningwal440@gmail.com

mxcCorrect answer
Inspiring
June 3, 2009

Hi

Yes strange to remove this handy reference to height.

The way to achieve this now is to use

textFlow.flowComposer.getControllerAt(0).getContentBounds().height

or if you have a variable for your Controller then just use that to getContentBounds().height

regards

Micheal

June 6, 2009

Hi Michael,

yes I got it with that, it was really strange as you said  to remove this handy reference.

But got it that way,

Thanks for the reply.

Regards,

Rajesh

Inspiring
June 6, 2009

Hi Rajesh,

No problemo

regards

Micheal