What does this mean for me? You will always be able to play your favorite games on Kongregate. However, certain site features may suddenly stop working and leave you with a severely degraded experience.
What should I do? We strongly urge all our users to upgrade to modern browsers for a better experience and improved security.
We suggest you install the latest version of one of these browsers:
Kongregate is a community-driven browser games portal with an open platform for all web games.
Get your games in front of thousands of users while monetizing through ads and virtual goods.
Learn more »
Has anybody ever had issues with URLRequest’s unexpectedly failing or stopping for no good reason?
I have a series of functions all getting data (Mainly JSON and XML files) and 90% of the time Flash will load all the files fine, however sometimes it will just stop after a certain amount.
function loadXSI(xsiSuffix:String, complete:Function):void
var url:String = "XXXXXXX" + xsiSuffix
_callbacks["loadXSInformation"] = complete;
var loader:URLLoader = new URLLoader();
loader.addEventListener(Event.COMPLETE, loadXSIComplete, false, 0, true);
var request:URLRequest = new URLRequest(url);
if (_updateFeed) _updateFeed.text = "Requesting XS Information...";
That function gets called multiple times like so;
However when I add a counter into the xsiComplete() function (to see how many of the requests are complete, sometimes it will just “hang” on say number 42/50 or so.
Is there any way to fix this or to detect when the request has been hanging (or failed)?
Add events to catch errors and check progress. `ProgressEvent.PROGRESS`, `IOErrorEvent.IO_ERROR`, And it might be worth loading your app in the browser and seeing in the Dev Tools panel if there are any issues.
After further testing, it still does freeze occasionally, and testing with the ProgressEvent.PROGRESS event listener, the bytesLoaded just stops increasing, and no IOErrorEvent.IO\_ERROR ever triggers, so im a little preplexed about what is happening. Will keep plugging away at figuring out what is wrong and will post an update if I figure it out.
Yeah, I have kind of given up trying to solve it, as you say, I am just putting a little internal timer that fires if the bytesLoaded value hasn’t changed for more than a few seconds, then retry the web request.