How to make synchronous URL requests from actionscript?
问题 I have a big loop in actionscript that sends lots of data to an url: for(var i=0;i<1000;i++) { var request:URLRequest = new URLRequest(); request.url = url; request.method = URLRequestMethod.POST; request.data = data; var loader:URLLoader = new URLLoader(); loader.load(request); } The problem is because URLLoader can make only asynchronous calls, it sends all those thousands requests at once which kills webserver. Also it acts a bit strange on top of that. Lets say the loop is running for 5