data binding between Model and Form controls
<?xml version="1.0"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute"> <mx:Model id="dataModel"> <userData> <email>{email.text}</email> <phone>{phone.text}</phone> <city>{city.text}</city> <state>{state.value}</state> </userData> </mx:Model> <mx:VBox> <mx:Label text="Email" /> <mx:TextInput id="email" /> <mx:Label text="Phone" /> <mx:TextInput id="phone" /> <mx:Label text="City" /> <mx:TextInput id="city" /> <mx:Label text="State" /> <mx:ComboBox id="state"> <mx:Array> <mx:Object label="CA" /> <mx:Object label="MA" /> </mx:Array> </mx:ComboBox> </mx:VBox> </mx:Application>