# Unloading XML

**URL:** https://forum.kirupa.com/t/unloading-xml/133232
**Category:** Uncategorized
**Created:** [January 6, 2005, 8:51pm UTC](https://forum.kirupa.com/t/unloading-xml/133232 "2005-01-06T20:51:21Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![acornelio](https://avatars.discourse-cdn.com/v4/letter/a/8491ac/32.png) [@acornelio](https://forum.kirupa.com/u/acornelio)
#### Post date: [January 6, 2005, 8:51pm UTC](https://forum.kirupa.com/t/unloading-xml/133232/1 "2005-01-06T20:51:21Z")

</div>

I was hoping someone could tell me how to unload xml correctly. I need to unload an xml file on release of a button, then load new XML. Currently I am unLoading the initial xml by unLoading the target clip. However, when I do this not all of the assets (jpgs) that where loaded with the xml delete form the screen. The following is the code I am currently using. Any help would be great. Thanks.

interactivePortfolio\_btn.onRelease = function() {  
portfolioLabel\_txt.text = “Interactive Portfolio”;  
currentThumb\_mc.unloadMovie()  
portfolio\_xml.load(“XML/interactive.xml”);  
\_parent.description\_txt.text = “”;  
\_parent.info\_txt.text = “”;  
play();  
};
