Flash Action Script 3.0 URLLoader timeout
Copy link to clipboard
Copied
Hi,
I am loading an xml from an api which require 40 to 60 second to response. But timeout has been executed in this duration.
Can I increase the time in URLLoader or URLRequest some how ?
Here is the sample code
var FSLdr:URLLoader = new URLLoader();
var FSReq:URLRequest = new URLRequest();
FSReq.url = "http://www.Mydomain.com/api_name";
FSVar.from = frm;
FSVar.to = to;
FSReq.data = FSVar;
FSReq.method = URLRequestMethod.POST;
FSLdr.load(FSReq);
FSLdr.addEventListener(Event.COMPLETE,FSComplete);
FSLdr.addEventListener(IOErrorEvent.IO_ERROR, FSErrorHandler);
Best Regards,
Amit
Copy link to clipboard
Copied
Hi, Amit
If you are using AIR you can try to change FSReq.idleTimeout or URLRequestDefaults.idleTimeout:
URLRequest - Adobe ActionScript® 3 (AS3 ) API Reference
URLRequestDefaults - Adobe ActionScript® 3 (AS3 ) API Reference
I don't know is it possible for Flash Player.
Copy link to clipboard
Copied
Thanks Itlancer It works for my air app

