WebService error event
<?xml version="1.0"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" xmlns="*" pageTitle="Test"> <mx:Script> import mx.controls.Alert; public var myNamespace:Namespace=new Namespace("http://server.com/"); </mx:Script> <mx:WebService id="WS" wsdl="http://server.com/service?wsdl" fault="Alert.show(event.fault.faultString),'Error'"> <mx:operation name="GetQuote" resultFormat="e4x"> <mx:request> <symbol>para</symbol> </mx:request> </mx:operation> </mx:WebService> <mx:HBox> <mx:Button label="Get Quote" click="WS.GetQuote.send()"/> <mx:Text text="{WS.GetQuote.lastResult.myNamespace::GetQuoteResult.StockQuote.Price}"/> </mx:HBox> </mx:Application>