Use a web service to process form input data
<?xml version="1.0"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"> <mx:WebService id="WeatherService" wsdl="/WeatherService?wsdl"> <mx:operation name="GetWeather"> <mx:request> <ZipCode>{zipCode.text}</ZipCode> </mx:request> </mx:operation> </mx:WebService> <mx:Script> private function processValues():void { WeatherService.GetWeather.send(); } </mx:Script> <mx:Form> <mx:FormItem label="Zip Code"> <mx:TextInput id="zipCode" width="200" text="Zip code please?" /> <mx:Button width="60" label="Submit" click="processValues();" /> </mx:FormItem> </mx:Form> <mx:VBox> <mx:TextArea text="{WeatherService.GetWeather.lastResult.CityShortName}" /> <mx:TextArea text="{WeatherService.GetWeather.lastResult.CurrentTemp}" /> <mx:TextArea text="{WeatherService.GetWeather.lastResult.DayForecast}" /> </mx:VBox> </mx:Application>