# Unload movie not working

**URL:** <https://forum.kirupa.com/t/unload-movie-not-working/44783>\
**Category:** flash\
**Created:** [March 7, 2004, 9:10pm UTC](https://forum.kirupa.com/t/unload-movie-not-working/44783 "2004-03-07T21:10:50Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Harpreet](https://avatars.discourse-cdn.com/v4/letter/h/7ea924/32.png) [@Harpreet](https://forum.kirupa.com/u/Harpreet)\
**Post date:** [March 7, 2004, 9:10pm UTC](https://forum.kirupa.com/t/unload-movie-not-working/44783/1 "2004-03-07T21:10:50Z")

</div>

hi guys!

I wonder why the following code doesnt work using \_level1.unloadMovie() nor even unloadMovie(\_level1);

function checkSubMenu(checkLevel){  
if (levelNo==checkLevel){  
unloadSubMenu(levelNo);  
}  
}

function unloadSubMenu(unloadLevel){  
//unloadMovie("\_level1") was not working mabe a bug  
// to overcome that I created a empty movie at the same level  
\_root.createEmptyMovieClip(“empty”,unloadLevel);  
}

I could be doing something wrong but I cud not figure it out so I created an empty movie clip on the level where I want to remove the movie. Not the best way.

Any ideas
