Form with ControlBar
<?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute"> <mx:Panel title="My Custom Form" verticalCenter="0" horizontalCenter="0"> <mx:Form> <mx:FormItem label="First Name:"> <mx:TextInput id="firstNameInput"/> </mx:FormItem> <mx:FormItem label="Last Name:"> <mx:TextInput id="lastNameInput"/> </mx:FormItem> </mx:Form> <mx:ControlBar> <mx:Button label="Click Me"/> </mx:ControlBar> </mx:Panel> </mx:Application>