Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Flash Action Script 3.0 URLLoader timeout

Explorer ,
Feb 09, 2015 Feb 09, 2015

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

TOPICS
ActionScript
2.1K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
Feb 09, 2015 Feb 09, 2015

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Feb 25, 2015 Feb 25, 2015
LATEST

Thanks Itlancer It works for my air app

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines