When a UIComponent's size has been determined and its children have been arranged, it dispatches an updateComplete event. If you ask for its width and height in a handler for this event, or at any time later, they should be correct. If every addChild() caused a remeasurement and relayout of the parent, adding lots of children would be slow. The invalidation/revalidation mechanism used by the LayoutManager allows you to add any number of children quickly and then have the parent automatically, but asynchronously, do all the calculations required to update itself only once. Gordon Smith Adobe Flex SDK Team
________________________________ From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Justin Winter Sent: Tuesday, November 27, 2007 9:28 AM To: [email protected] Subject: [flexcoders] Re: This has to be a bug right? If not, please explain... Is there a better, more appropriate way to validate certain properties, like "height", after adding children to a UIComponent or subclass of UIComponent? Coming from AS2 I find it confusing that there isn't an easy way to access the height of a container after adding children. If later during runtime I need to access the height of dynamically created child container, what is the appropriate approach?

