Contact Editor Form
<?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute"> <mx:Form id="contactEditor"> <mx:FormHeading label="Contact Editor" /> <mx:FormItem label="First Name" required="true"> <mx:TextInput id="firstNameTextInput" /> </mx:FormItem> <mx:FormItem label="Last Name"> <mx:TextInput id="lastNameTextInput" /> </mx:FormItem> <mx:HRule height="22" width="100%" /> <mx:FormItem label="Email" required="true"> <mx:TextInput id="emailTextInput" /> </mx:FormItem> <mx:FormItem label="Phone"> <mx:TextInput id="phoneTextInput" /> <mx:RadioButtonGroup id="phoneRadioButtonGroup" /> <mx:RadioButton label="mobile" groupName="phoneRadioButtonGroup" selected="true" /> <mx:RadioButton label="home" groupName="phoneRadioButtonGroup" /> <mx:RadioButton label="other" groupName="phoneRadioButtonGroup" /> </mx:FormItem> <mx:FormItem label="Address"> <mx:TextArea id="addressTextArea" /> </mx:FormItem> <mx:FormItem label="Zip"> <mx:TextInput id="zipCodeTextInput" /> </mx:FormItem> <mx:HRule height="22" width="100%" /> <mx:FormItem label="Birthday"> <mx:DateField id="birthdayDateField" editable="true" /> </mx:FormItem> <mx:FormItem label="Favorite Color"> <mx:ColorPicker id="favoriteColorPicker" /> </mx:FormItem> <mx:FormItem> <mx:CheckBox id="companyCheckBox" label="Company" /> </mx:FormItem> </mx:Form> </mx:Application>