There isn't a specific event thrown for timeouts, but your "myFaultFunction" should be getting called.Here's a test case using QueryTask:<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:esri="http://www.esri.com/2008/ags"
applicationComplete="application_applicationCompleteHandler(event)">
<fx:Script>
<![CDATA[
import com.esri.ags.tasks.supportClasses.Query;
import mx.events.FlexEvent;
import mx.rpc.AsyncResponder;
protected function application_applicationCompleteHandler(event:FlexEvent):void
{
var query:Query = new Query();
query.outFields = [ "*" ];
query.returnGeometry = true;
query.where = "1=1";
queryTask.execute(query, new AsyncResponder(myResultFunction, myFaultFunction));
function myResultFunction(result:Object, token:Object = null):void
{
trace("myResultFunction", result);
}
function myFaultFunction(error:Object, token:Object = null):void
{
trace("myFaultFunction", error);
}
}
]]>
</fx:Script>
<fx:Declarations>
<esri:QueryTask id="queryTask"
disableClientCaching="true"
executeComplete="trace(event)"
fault="trace(event)"
requestTimeout="1"
url="http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Demographics/ESRI_Census_USA/MapServer/0"
useAMF="false"/>
</fx:Declarations>
</s:Application>
The output when I run this is:myFaultFunction [RPC Fault faultString="Request timed out" faultCode="Client.Error.RequestTimeout" faultDetail="The request timeout for the sent message was reached without receiving a response from the server."]
[FaultEvent fault=[RPC Fault faultString="Request timed out" faultCode="Client.Error.RequestTimeout" faultDetail="The request timeout for the sent message was reached without receiving a response from the server."] messageId="DE381645-A591-8705-EA82-7BF0FA0045D3" type="fault" bubbles=false cancelable=true eventPhase=2]