added to a creationComplete handler function:

<code>
var vBox:VBox = new VBox();

for(var i:int = 0; i < 10; i++)
{
        var tmpBtn:Button = new Button();
        tmpBtn.label = "BUTTON: " + i;
        vBox.addChild(tmpBtn);                                  
}

this.addChild(vBox);

trace('VBOX HEIGHT: ' + vBox.height);
</code>

OUTPUT:
------
VBOX HEIGHT: 0 <- ALWAYS ZERO

No matter if I call vBox.invalidateProperties(); or any of the other
invalidate functions. The buttons are added to the container fine and
are displayed fine. 

I've also tried this with several other containers and the height is
not updated after the children are added. What am I missing here? 

Reply via email to