IMPORTANT: This is using Flash - Adobe Air
Ran into a rather weird issue when loading some RSS
To give you an idea There is the defualt feed, and then the “improved feed”
http://www.mysite.com/info.rss
http://www.mysite.com/info.rss?watched&sortbydate
To be clear, the “improved” feed works 100% every time you load it in your browser, or any rss program, it will always load correctly.
HOWEVER, using the following code
var loader:URLLoader=new URLLoader();
loader.addEventListener(Event.COMPLETE, onRedDataLoad);
loader.addEventListener(IOErrorEvent.IO_ERROR, onIOError);
loader.addEventListener(SecurityErrorEvent.SECURITY_ERROR, onSecurityError);
loader.load(new URLRequest("http://www.mysite.com/info.rss?watched&sortbydate"));
Here is the kicker, The above code is ran once every 180 seconds. The first time it runs, it will ALWAYS pick up the wrong feed (it will pick up “http://www.mysite.com/info.rss” as if the items at the end are not there, after that, it will pick up the correct feed 99% of the time, while once in a blue moon, it will not pick up the correct feed (and pick up the normal version)
does anyone have any ideas? this is driving me insane atm
My only guess is it’s how flash trys to load the page. but im not sure why it will always fail the first time.