Advanced Flash Components
Search!
Search!
Home >  Knowledge Base >  IMG Loop >  XML caching?
XML caching?
Date: Jan 31, 2008   Views: 937  
Question:
I'm using the IMG Loop component, with the images being loaded from an XML file.
However, once I updated the XML file, the old version is being cached. How would I prevent this from happening?

Thanks
Answer:

nerath (Admin)
Hi ,
You would need to randomize the cache of the Xml being loaded. This should reset it everytime you load. Please make sure that the path of the xml is one on the server. You will get a error if trying to test locally.

myComponent.contentXML = "content.xml?random="+Math.random()*100;


Thanks,
Nerath
Component Info