A form for first name, last name, address, city, zip code and country
<?xml version="1.0"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">
<mx:Script>
private function setValues():void {
}
</mx:Script>
<mx:Form id="myForm" width="400">
<mx:FormHeading label="Billing Information" />
<mx:FormItem label="First Name">
<mx:TextInput id="fname" width="100%" />
</mx:FormItem>
<mx:FormItem label="Last Name">
<mx:TextInput id="lname" width="100%" />
</mx:FormItem>
<mx:FormItem label="Address">
<mx:TextInput id="addr1" width="100%" />
<mx:TextInput id="addr2" width="100%" />
</mx:FormItem>
<mx:FormItem label="City / State" direction="vertical">
<mx:TextInput id="city" />
<mx:ComboBox id="st" width="50" />
</mx:FormItem>
<mx:FormItem label="Zip Code">
<mx:TextInput id="zip" width="100" />
</mx:FormItem>
<mx:FormItem label="Country">
<mx:ComboBox id="cntry" />
</mx:FormItem>
<mx:FormItem>
<mx:Button label="Submit" click="setValues();" />
</mx:FormItem>
</mx:Form>
</mx:Application>
Related examples in the same category