# XML Gets Cached I Think

**URL:** https://forum.kirupa.com/t/xml-gets-cached-i-think/227449
**Category:** flash
**Created:** [May 30, 2007, 1:06pm UTC](https://forum.kirupa.com/t/xml-gets-cached-i-think/227449 "2007-05-30T13:06:42Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![rcomeau](https://avatars.discourse-cdn.com/v4/letter/r/9de0a6/32.png) [@rcomeau](https://forum.kirupa.com/u/rcomeau)
#### Post date: [May 30, 2007, 1:06pm UTC](https://forum.kirupa.com/t/xml-gets-cached-i-think/227449/1 "2007-05-30T13:06:42Z")

</div>

I have created a .swf and in it contains a slideshow extention component called xml flash slideshow v3

Here is the url  
[[COLOR=#333333]http://therain.ca/mockupv2[/COLOR]](http://therain.ca/mockupv2)

the problem seems to be that when you click on another button on the site and then return to the gallery it duplicates. Maybe it takes it from cache as well as reloads the xml but im not sure.

Here is the code that I am using as this has been provided by the company that makes this extension.

// Create init object  
var initObj:Object = {};  
initObj.fillStage = false;  
initObj.forceWidth = 300; // PUT WIDTH HERE  
initObj.forceHeight = 300; // PUT HEIGHT HERE  
initObj.initXML = unescape("");  
initObj.xml = “[http://therain.ca/mockupv2/datacomponent.php](http://therain.ca/mockupv2/datacomponent.php)”; // PUT FULL XML  
PATH HERE  
initObj.preventCache = true; // IF LOADING FAILS, CHANGE TO FALSE  
initObj.disableMultipleXML = false;  
// Create the slideshow  
createClassObject(com.ui.Slideshow, “slideshow\_mc”,  
getNextHighestDepth(), initObj);

Is there anyway I can get this to stop duplicating that anyone can see.
