Populating a Form control from a data model
<?xml version="1.0"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"> <mx:Model id="myFormModel"> <info> <fName>{firstName.text}</fName> <lName>{lastName.text}</lName> <department>Accounting</department> </info> </mx:Model> <mx:Form> <mx:FormItem label="First and Last Names"> <mx:TextInput id="firstName" /> <mx:TextInput id="lastName" /> </mx:FormItem> <mx:FormItem label="Department"> <mx:TextInput id="dept" text="{myFormModel.department}" /> </mx:FormItem> </mx:Form> </mx:Application>