# How do i use unloadMovie?

**URL:** <https://forum.kirupa.com/t/how-do-i-use-unloadmovie/116233>\
**Category:** Uncategorized\
**Created:** [July 15, 2004, 7:43pm UTC](https://forum.kirupa.com/t/how-do-i-use-unloadmovie/116233 "2004-07-15T19:43:51Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![seanc](https://avatars.discourse-cdn.com/v4/letter/s/ad7895/32.png) [@seanc](https://forum.kirupa.com/u/seanc)\
**Post date:** [July 15, 2004, 7:43pm UTC](https://forum.kirupa.com/t/how-do-i-use-unloadmovie/116233/1 "2004-07-15T19:43:51Z")

</div>

i have 2 blank movieclips in my scene, each one is there to load seperate external swf’s into when hitting a corresponding button. i need to write a script that will tell the first swf opened to unload when you load the second one. here is the script i have so far:

on (release) {  
loadMovie(“email.swf”, “external”);  
}  
(that script is on the first button, external is the name of the black movie clip in the scene to load the swf into)

on (release) {  
loadMovie(“thumbss.swf”, “external2”);

}  
(that script is on the second button, external2 is the second blank movie clip.

i tried just adding a simple command like this to each button to unload one when the second clip is loaded, but it failed:

on (release) {  
loadMovie(“email.swf”, “external”);  
unloadMovie(“thumbss.swf”);

}  
what do i do? any ideas? thanks!
