creationPolicy: auto, none, all
<?xml version="1.0"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">
<mx:Panel title="Title" >
<mx:VBox id="outerVBox" creationPolicy="auto">
<mx:Label id="lb1" text="VBox creation policy set to {innerVBox.creationPolicy}" />
<mx:VBox id="innerVBox" creationPolicy="none">
<mx:Label id="lb2" text="Label in inner VBox" />
<mx:Button id="b1" label="Button in the inner VBox" />
<mx:VBox id="secondLevelInnerVBox" creationPolicy="all">
<mx:Button id="b2" label="Button in the second level inner VBox" />
</mx:VBox>
</mx:VBox>
</mx:VBox>
</mx:Panel>
</mx:Application>
Related examples in the same category