# Unloading a \_lockroot movie

**URL:** <https://forum.kirupa.com/t/unloading-a--lockroot-movie/253090>\
**Category:** flash\
**Created:** [February 27, 2008, 2:20am UTC](https://forum.kirupa.com/t/unloading-a--lockroot-movie/253090 "2008-02-27T02:20:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![deadtrees](https://avatars.discourse-cdn.com/v4/letter/d/7cd45c/32.png) [@deadtrees](https://forum.kirupa.com/u/deadtrees)\
**Post date:** [February 27, 2008, 2:20am UTC](https://forum.kirupa.com/t/unloading-a--lockroot-movie/253090/1 "2008-02-27T02:20:00Z")

</div>

I’ve got this vexing problem. I want to load a short quiz created from the flash quiz template into a movie. The problem is that navigation in the quiz template needs \_lockroot enabled in order to be able to function correctly. The question is, after I am done, how do I unload it.

I’m loading using this code:

```auto
 
var mList:Object = new Object();
var mLoad:MovieClipLoader = new MovieClipLoader();
mLoad.addListener(mList);
var hold:MovieClip = this.createEmptyMovieClip("holder", this.getNextHighestDepth());
hold._x = 0;
hold._y =0; 
 loadQCBtn.onRelease = function(){
 mLoad.loadClip('QualityControl.swf',holder);
 this.enabled = false;
}

```

The unload code I am using for a different movie that is not bound by \_lockroot , to get back to the navigation page is

```auto
 
myButton.onRelease = function(){
unload()
}

```

I’m not that proficient of a coder to know what to change in the quiz navigation actionscript to make the code work.

Any help would be greatly appreciated!
