# Quick movieclip depth question

**URL:** <https://forum.kirupa.com/t/quick-movieclip-depth-question/317916>\
**Category:** flash\
**Created:** [January 5, 2011, 10:43pm UTC](https://forum.kirupa.com/t/quick-movieclip-depth-question/317916 "2011-01-05T22:43:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![strawberry](https://avatars.discourse-cdn.com/v4/letter/s/f19dbf/32.png) [@strawberry](https://forum.kirupa.com/u/strawberry)\
**Post date:** [January 5, 2011, 10:43pm UTC](https://forum.kirupa.com/t/quick-movieclip-depth-question/317916/1 "2011-01-05T22:43:00Z")

</div>

I have my main menu movieclip placed on the main stages and I use it to load some external swfs  
However when I load them, the menu disappears because it is covered by the loaded swf.  
How can I set the depth of my top menu so that will always be visible when the external swfs are loaded? Should the depth be set on the main time line or inside the main manu movie clip? Hope someone can help  
Note: this is the code in my main menu that I am using to load the swfs but my main menu is a movie clip placed on the main timeline…

```auto

var swf:MovieClip;
var loader:Loader = new Loader();
var defaultSWF:URLRequest = new URLRequest("swfs/welcome.swf");
loader.load(defaultSWF);
stage.addChild(loader);
 
function btnClick(event:MouseEvent):void{
 
stage.removeChild(loader);
var newSWFRequest:URLRequest = new URLRequest("swfs/" + event.target.name + ".swf");
loader.load(newSWFRequest);
stage.addChild(loader);
 
}
 
home.addEventListener(MouseEvent.CLICK, btnClick);
about.addEventListener(MouseEvent.CLICK, btnClick);
portfolio.addEventListener(MouseEvent.CLICK, btnClick);
media.addEventListener(MouseEvent.CLICK, btnClick);
blog.addEventListener(MouseEvent.CLICK, btnClick);
contact.addEventListener(MouseEvent.CLICK, btnClick);

```
