Remove xml

I have a menu that loads a sub-menu into a seperate swf. the sub-menu is coming from an xml file.

the menu sends an id to the sub-menu using local connection which then loads the xml file for selected option. the initial sub-menu loads fine selecting a first option on the menu but that stays there and any consecutive clicks on the menu wont load the appropriate sub menu.

so basically what I want to do is unload the xml submenu when the user clicks an option and load a new submenu. I think!