# Xml caching?

**URL:** <https://forum.kirupa.com/t/xml-caching/284964>\
**Category:** Uncategorized\
**Created:** [March 25, 2009, 5:04pm UTC](https://forum.kirupa.com/t/xml-caching/284964 "2009-03-25T17:04:31Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Navarone](https://avatars.discourse-cdn.com/v4/letter/n/f9ae1b/32.png) [@Navarone](https://forum.kirupa.com/u/Navarone)\
**Post date:** [March 25, 2009, 5:04pm UTC](https://forum.kirupa.com/t/xml-caching/284964/1 "2009-03-25T17:04:31Z")

</div>

I created a new slideshow in flash CS3 - AS3 but my code that I had for xml caching is barking at me and I am not sure what to do. The output window shows access to undefined property root. Any help appreciated

```auto

//added to help prevent XML caching
var xmlFile="images.xml";
var cacheBust:String = (_root._url.indexOf("file:") >= 0) ? "" : "?rn="+new Date().
getTime()+(Math.random()*100);
var src:String = xmlFile + cacheBust;
my_ssp.xmlFilePath= src;

```
