# Clear XML data to load new XML

**URL:** <https://forum.kirupa.com/t/clear-xml-data-to-load-new-xml/299231>\
**Category:** flash\
**Created:** [November 1, 2009, 9:29pm UTC](https://forum.kirupa.com/t/clear-xml-data-to-load-new-xml/299231 "2009-11-01T21:29:33Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![DirtyApe](https://avatars.discourse-cdn.com/v4/letter/d/c37758/32.png) [@DirtyApe](https://forum.kirupa.com/u/DirtyApe)\
**Post date:** [November 1, 2009, 9:29pm UTC](https://forum.kirupa.com/t/clear-xml-data-to-load-new-xml/299231/1 "2009-11-01T21:29:33Z")

</div>

I need help clearing an XML file (which is used to load images in a slideshow) so that I can load a new XML file (to play a new set of images in the slideshow). Below is the actionscript used to load the images into the movieclip “photoLoad”:

```auto
edit

```

I have tried simply loading **photos2.xml** , but **photos.xml** continues playing and is not replaced. I think I need to unload **photos.xml** before loading **photos2.xml**. Any help is much appreciated!
