# How I can control the "unloadMovie" command?

**URL:** https://forum.kirupa.com/t/how-i-can-control-the-unloadmovie-command/65436
**Category:** Uncategorized
**Created:** [September 26, 2004, 11:50am UTC](https://forum.kirupa.com/t/how-i-can-control-the-unloadmovie-command/65436 "2004-09-26T11:50:42Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![motionsync](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/motionsync/32/781_2.png) [@motionsync](https://forum.kirupa.com/u/motionsync)
#### Post date: [September 26, 2004, 11:50am UTC](https://forum.kirupa.com/t/how-i-can-control-the-unloadmovie-command/65436/1 "2004-09-26T11:50:42Z")

</div>

Hello . I have a problem

Is it posible to control the unloadMovie command?  
Like that I can unload a movie after I have playd a movie clip

My Button actionscript is \*\*\* follow:

on (release) {  
unloadMovieNum(10);  
\_root.sweet.buttonpressed = true;  
\_root.sweet.mynewmovie = “gallery3.swf”;  
}  
on (release) {  
tellTarget ("\_root.LogoMovie") {  
if (Number(\_currentframe)\>2) {  
gotoAndPlay(“25”);  
}  
}  
}

I like to unload the movie after & only if the \_currentframe is \>2

Thanks
