Layout FormItem horizontally

<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">
<mx:Form>
<mx:FormHeading label="Information"/>
<mx:FormItem label="First Name, Last Name" direction="horizontal">
<mx:TextInput id="firstName"/>
<mx:TextInput id="lastName"/>
</mx:FormItem>
<mx:FormItem label="e-mail">
<mx:TextInput id="email"/>
</mx:FormItem>
<mx:FormHeading label="Another"/>
<mx:FormItem label="Password Question">
<mx:TextInput id="Password"/>
</mx:FormItem>
<mx:FormItem label="Comment">
<mx:TextArea id="comment" editable="true" width="326" height="100"/>
</mx:FormItem>
</mx:Form>
</mx:Application>
Related examples in the same category