Skip navigation
Currently Being Moderated

NetConnection httpIdleTimeout

Sep 6, 2011 8:13 PM

Hi,

 

When using the property httpIdleTimeout in action script 3, I get this error:


"Access of possibly undefined property httpIdleTimeout through a reference with static type flash.net:NetConnection"

 

Here is my code below:

 

import flash.net.*;
import flash.net.NetConnection;     
...
var _netConnection:NetConnection = new NetConnection();         
_netConnection
.httpIdleTimeout = 5000;
...

I need to increase the timeout because my service takes time to process some data.
I have AIR 2.7.1 installed.

Thanks in advance!
 
Replies
  • Currently Being Moderated
    Oct 3, 2011 3:21 AM   in reply to black2.718

    Hi,

     

    Got exact the same problem.. (using the   flex 4.5.1 and  air 2.7.1 sdk).

    Strange thing... this used to work.. :S

     

    If i look at the NetConnection class i can see the httpIdleTimeout getter and setter. But it still gives me "ReferenceError: Error #1056: Cannot create property httpIdleTimeout on flash.net.NetConnection."

     


     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points