Actionscript 3 : XML cached in local testing

Posted by Boun on Stack Overflow See other posts from Stack Overflow or by Boun
Published on 2010-03-17T11:18:14Z Indexed on 2010/03/17 11:21 UTC
Read the original article Hit count: 335

Filed under:
|
|
|

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.

© Stack Overflow or respective owner

Related posts about actionscript3

Related posts about Xml