# Multiple XML files Help

**URL:** <https://forum.kirupa.com/t/multiple-xml-files-help/301140>\
**Category:** Uncategorized\
**Created:** [December 3, 2009, 7:44pm UTC](https://forum.kirupa.com/t/multiple-xml-files-help/301140 "2009-12-03T19:44:07Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![greatwall](https://avatars.discourse-cdn.com/v4/letter/g/db5fbb/32.png) [@greatwall](https://forum.kirupa.com/u/greatwall)\
**Post date:** [December 3, 2009, 7:44pm UTC](https://forum.kirupa.com/t/multiple-xml-files-help/301140/1 "2009-12-03T19:44:07Z")

</div>

Ok I have multiple xml files. Let’s say there’s 3.

I load up the first one and based on a variable. The second one loads upon clicking of a button which changes the variable and goes back to the first frame. But when it loads flash doesn’t unload the original xml file.

How can I make it unload the original file and swap for the new one?

Thanks for the help!  
 ![](http://forum.kirupa.com/uploads/kirupa/3755/3aec295217693272.gif)[![](http://forum.kirupa.com/uploads/kirupa/3756/20ace7f93c5339be.gif)](http://www.actionscript.org/forums/newreply.php3?do=newreply&p=947521)
