I have a caching problem in my action script, and to get over it i added the timestamp as recommended:
var urlRequest:URLRequest = new URLRequest("http://mydomain.com?time=" + new Date().getTime());
var urlLoader:URLLoader = new URLLoader();
urlLoader.addEventListener(Event.COMPLETE, function(evt:Event) {
...
});
urlLoader.load(urlRequest);
but am getting the following error:
Error #2044: Unhandled ioError:. text=Error #2032: Stream Error. URL: http://mydomain.com ?time=1314645911941
at Main/Operate()
at Main()
If i paste it in the url in the browser it loads fine, i guess the problem is coming from the A.S,
any idea y?
Thanks
You have an un-handled event ioError
Chances are your application is having an issue with loading it and can’t report it to you due to no event listeners for that event.
There are a few events when loading any outside data,image,SWf, or anything really that you need to handle just to be sure and will help with debugging.
Here is a list I try to always imnplement
Oh yeah and please please use named functions not nameless ones.
This is an OOP language and nameless functions are not good OOP at all.