Actionscript 3 : XML cached in local testing
- by Boun
Hi,
My question is about XML loading. I need to avoid xml caching.
On a web server, the technique is adding a random param to reload each time the XML file.
But on local testing (in Flash CS4 IDE, CTRL + Enter), the following lines are not possible :
var my_date : Date;
path = "toto.xml?time="+my_date.getSeconds()+my_date.getMilliseconds();
Is there any trick to bypass this issue ?
I've read on different forum about the "delete" method, we delete the xml object and then recreate one new.
In my case, I put : myXML = null; myXML = new XML ( loadedData );
But it doesn't work at all.
I spent many hours on that problem, if anyone has a good solution...
Thank you.