horizontal layout
<?xml version="1.0"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"> <mx:Panel title="My Application" layout="horizontal" paddingLeft="10" paddingRight="10" paddingTop="10" paddingBottom="10"> <mx:TextInput id="myinput" text="enter zip code" /> <mx:Button id="mybutton" label="GetWeather" /> <mx:TextArea id="mytext" height="20" /> </mx:Panel> </mx:Application>