Mega Code Archive

 
Categories / Flex / Components
 

Create Components From Descriptors

<?xml version="1.0"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" >     <mx:Script>       private function createComponents(recurseVal:Boolean):void {           vbox1.createComponentsFromDescriptors(true);       }   </mx:Script>     <mx:Panel>         <mx:VBox id="vbox1" creationPolicy="none">              <mx:DateField id="dateField1"/>         </mx:VBox>         <mx:Button label="Create components" click="createComponents(true)" />     </mx:Panel> </mx:Application>