Is there a timeout on the connection made by URLLoader.load? If there is, what's its value, where is it documented and can it be changed? Also, what event (if any) gets dispatched if the timeout occurs? Is there a difference between AIR and browser application in those regard?
相关问题
- Should I wait for Flash Player 10.1 or go with Fla
- How to load flex swf from flash?
- How to load flex swf from flash?
- Converting Date with Time in PST into UTC format
- Displaying two fullscreen windows on two monitors
相关文章
- Trace on Chrome/Browser console
- as3 ByteArray to Hex (binary hex representation)
- Is building separate .swc allow a faster loading o
- getElementById not working in Google Chrome extens
- Assigning an array of objects to a DataGrid
- Libraries for text animation in Flex / Actionscrip
- How to upload BitmapData to a server (ActionScript
- Flex 4 - Create states and add elements at runtime
it depends on how the player is running. when embedded into the browser, flash player uses the browser infra structure for HTTP. in consequence, timeouts are handled by the containing browser. standalone player and AIR have their own HTTP implementation. But I have no clue where you can set the timeout.
However, I guess you can solve the problem yourself. If the timeout is to long, you can simply build your own and cancel the load operation. If it is too short, you can simply encapsulate the loader and do some retries within it.
If you are intending to hold a connection to the server and don't want it to close due to timeouts, I suggest you have a look at
URLStream
. Then you can simply send some keep-alive bogus from the server.The timeout of URLLoader is hard-coded to 30 seconds in Flash Player. Also see this thread.
In an AIR app it can be changed by setting URLRequest.idleTimeout but no such setting exist in the Flash Player.
Answer is here.
Update The timeout comes from the system proxy settings. On Windows (I don't know which OS you are using) it's the same settings that IE has, which can be modified here.