I have a program (.swf) that makes a few different calls to our server, in AS 3.0, Flash Player 10. This program is run locally, not on a server and not embedded in a webpage. The calls work perfectly sometimes, other times all calls get an IOError.
The only way that seems to fix it is if I open up a web browser and put the server URL in and go to that page in the browser. Once I do that all server calls suddenly start working again, at least for a little while.
My server guy doesn't see any attempts in his logs which makes me think the problem is on my side of things.
I am using a URLLoader and a URLRequester for my 2 way communication with the server, which works fine sometimes.
//Here is the basics of my code
request = new URLRequest(ActivationPath);
request.data = getDataToPass();
request.method = URLRequestMethod.POST;
loader = new URLLoader();
loader.dataFormat = URLLoaderDataFormat.VARIABLES;
loader.addEventListener(Event.COMPLETE, doSuccess, false, 0, true);
loader.addEventListener(IOErrorEvent.IO_ERROR, doFail, false, 0, true);
I think Flash might be breaking communication with the server for some reason at random times, not allowing any new calls to the server.
When it fails, it traces: Error opening URL 'http://www.myServerName/login.aspx?random=1754'
then calls my doFail function
Please help. Thanks,