Skip to main content
Known Participant
August 27, 2009
Answered

how can i get contentWidth and contentHeight of ContainerController

  • August 27, 2009
  • 1 reply
  • 773 views

In flex4, DisplayObjectContainerController was replaced by ContainerController,  there is no contentWidth and contentHeight in the new  ContainerController. So how can i get contentWidth and contentHeight which i used to autosize my sprite.

This topic has been closed for replies.
Correct answer rdermer

Use ContainerController.getContentBounds()

Richard

1 reply

rdermerCorrect answer
Adobe Employee
August 27, 2009

Use ContainerController.getContentBounds()

Richard

fatmckAuthor
Known Participant
August 27, 2009

thanks a lot.