# unloadMovie doesn't work

**URL:** <https://forum.kirupa.com/t/unloadmovie-doesnt-work/81009>\
**Category:** flash\
**Created:** [February 26, 2005, 10:05pm UTC](https://forum.kirupa.com/t/unloadmovie-doesnt-work/81009 "2005-02-26T22:05:16Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Muigel](https://avatars.discourse-cdn.com/v4/letter/m/958977/32.png) [@Muigel](https://forum.kirupa.com/u/Muigel)\
**Post date:** [February 26, 2005, 10:05pm UTC](https://forum.kirupa.com/t/unloadmovie-doesnt-work/81009/1 "2005-02-26T22:05:16Z")

</div>

hi there…i have a little problem with the unloadMovie command…  
you see…

i have a button which is **mc2\_about**

here is the code

```php
menu.nav.mc2_about.onRelease = function() {
if(nextMovie!="portfolio2.swf"){
	//set the variable that holds the name of the movie to be loaded
	nextMovie="portfolio2.swf";
	_root.container.loadMovie("portfolio2.swf",1);
	//tell the currently loaded content movie to play it's outro animation
	main_zoom.gotoAndPlay("unload");
	_level1.unloadMovie()
}

	};

```

where i want to unload \*\*level1 \*\*which is a scrollbar with a text  
and load the portfolio section in an empty container…  
to help you with my structure i want to load in an empty container the  
swf’s of the main navigation (home- portfolio,etc) and the sub-menus of it’s categories[about me-print-web design) into levels…  
is there a simpliest way of doing that?  
any help would be good…!! 😉
