# Unloading pages

**URL:** <https://forum.kirupa.com/t/unloading-pages/95905>\
**Category:** Uncategorized\
**Created:** [December 2, 2003, 8:41am UTC](https://forum.kirupa.com/t/unloading-pages/95905 "2003-12-02T08:41:24Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![foxee](https://avatars.discourse-cdn.com/v4/letter/f/9dc877/32.png) [@foxee](https://forum.kirupa.com/u/foxee)\
**Post date:** [December 2, 2003, 8:41am UTC](https://forum.kirupa.com/t/unloading-pages/95905/1 "2003-12-02T08:41:24Z")

</div>

hi

im doing an assignment and i have main page with several buttons(with sounds), when u click on them it takes u to another .swf file.

The problem is that i want the main page to unload when it takes u to another page. I have used a movieclip to load the .swf files, but it doesnt seem to unload and the main page is still in the background as i can hear the sounds from the buttons.

here is the code ive used if its any help:

on (release) {  
loader.loadMovie(“contactus.swf”);  
}

ive also tried this:

on (release) {  
loader.unloadMovie(“home.swf”);  
loader.loadMovie(“contactus.swf”);  
}

would anyone be able to help me?

foxee
