Forum ActionScript 3.0 loadpolicyfile time out takes forever!

Problems and discussions relating to ActionScript 3.0 here.

loadpolicyfile time out takes forever!

Postby fevenis » August 7th, 2012, 4:32 pm

Before and when using I have been trying to figure out what to do about Security.loadPolicyFile taking like 20 seconds to time out before an error is thrown (security event).

Is there anything I can do to make it time out faster? My goal is give an error message to the user sooner in situations when they can't load the policy file (be it no internet, etc).
Posts: 1
Joined: August 7th, 2012, 4:29 pm

Re: loadpolicyfile time out takes forever!

Postby Benjaminsen » August 31st, 2012, 7:06 am

Http request
Security.loadPolicyFile is an Adobe function we sadly do not control, the delay you are seeing is the flash request timing out.

In the Multiplayer API
As part of our API, we try to do anything we can to get around firewalls and other things that block our games. To do this we try to connect to multiple ports using multiple methods. This can naturally take some time.

For both cases, what I suggest is start a timer, then after 5 seconds show the user a "slow connection" overlay, informing the user that the game did not break and is still trying to connect.
Posts: 1444
Joined: January 12th, 2010, 11:54 am
Location: Denmark

Return to ActionScript 3.0