We are migrating our application to use Flex 4.1 from Flex 3.5.
Our application is pretty complicated with tons of custom components. I noticed that when we use nested containers the creationComplete event is not dispatched. I narrowed it down to the following: We have application that has a child component which is an extension of an extension of Panel, that child component has one VBox child. The creationComplete event is not dispatched for that VBox even after I set the creationPolicy to "all" on all Containers.
I would put a breakpoint in LayoutManager.doPhasedInstantiation. It should
eventually stop getting called. If not, something is constantly
invalidating the Vbox or its children.
The actual issue ended up being the width of the VBox - it was set to this.width (I did not write the code ) and it got into an infinite loop where the child component (VBox) was trying to set the width to the parent's width and the parent tried adjust its width to the children so it kept growing and growing. Not sure why this works in Flex 3.5 but not in 4.1. Looks like an issue with the Panel.