
99ADOBE FLEX 3
Building and Deploying Adobe Flex 3 Applications
p = policy.selectedItem.toString();
}
private function changePolicy():void {
var polType:String = policy.value.toString();
hb.creationPolicy = polType;
if (polType == "none") {
// do nothing
} else if (polType == "all") {
hb.createComponentsFromDescriptors();
}
}
]]></mx:Script>
<mx:ComboBox id="policy" close="p=String(policy.selectedItem);changePolicy();">
<mx:dataProvider>
<mx:Array>
<mx:String>none</mx:String>
<mx:String>all</mx:String>
</mx:Array>
</mx:dataProvider>
</mx:ComboBox>
<mx:Panel title="Creation Policy" id="hb" creationPolicy="none">
<mx:Button label="B1" width="50" ...