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

Set or even get the timeout for URLRequest objects

Explorer ,
Oct 29, 2010 Oct 29, 2010

Copy link to clipboard

Copied

Hi,

I try to set the timeout for my URLRequest via

Code:
var tempURLRequest:URLRequest = new URLRequest (path);
tempURLRequest.idleTimeout = 2000;

But it doesn't work. Thus: How can I set/change/get the timeout  for URLRequests? I need this since I start many parallel URLRequests and  on slow connections I get an IOError URL not found error due to the  long time they are on stack (I asume).

Thanks

Konrad

TOPICS
ActionScript

Views

1.4K

Translate

Translate

Report

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
Advocate ,
Oct 29, 2010 Oct 29, 2010

Copy link to clipboard

Copied

idleTimeout  property is just for AIR 2 I think.

Votes

Translate

Translate

Report

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
Advocate ,
Oct 29, 2010 Oct 29, 2010

Copy link to clipboard

Copied

How do you load your URLRequest?

Can you show that part? with a loop?

Votes

Translate

Translate

Report

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 ,
Oct 29, 2010 Oct 29, 2010

Copy link to clipboard

Copied

LATEST

The code to load a single image is:

var imageLoader:Loader = new Loader ();

imageLoader.contentLoaderInfo.addEventListener (Event.COMPLETE, loadHandler);           

var tempURLRequest:URLRequest = new URLRequest (path);

tempURLRequest.idleTimeout = 2000;

imageLoader.load (tempURLRequest);

And this function is called multiple (~500-3000) times in a "for" loop.

On fast connections all URLRequest are processed without any errors. On slow connections the later URLRequest get the "URL not found" error that I attribute to a timeout of the reqeusts.

Votes

Translate

Translate

Report

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