# PopupManager - depth problem

**URL:** https://forum.kirupa.com/t/popupmanager-depth-problem/221823
**Category:** flash
**Created:** [April 8, 2007, 7:52am UTC](https://forum.kirupa.com/t/popupmanager-depth-problem/221823 "2007-04-08T07:52:22Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![jbailey](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/jbailey/32/2380_2.png) [@jbailey](https://forum.kirupa.com/u/jbailey)
#### Post date: [April 8, 2007, 7:52am UTC](https://forum.kirupa.com/t/popupmanager-depth-problem/221823/1 "2007-04-08T07:52:22Z")

</div>

I put the MC that contains the script for creating a window inside of another MC. When I do that, the script does not create a new window. Why? I have the window component in the library of the childMC and the below script is in the childMC. The openBTN creates a window when childMC is not inside parentMC.

Is this a “KnownIssue”?

parentMC-childMCwiththeWindowCreate

```auto

var addWin:MovieClip = PopUpManager.createPopUp(_root, Window, true, {closeButton:true, contentPath:"addMC"});
    var winListener:Object = new Object();
    winListener.click = function(evt_obj:Object) {
        addWin.deletePopUp();
    };
    winListener.complete = function(evt_obj:Object) {
        addWin.setSize(addWin.content._width, addWin.content._height + 25);
    }
    addWin.addEventListener("click", winListener);
    addWin.addEventListener("complete", winListener);
    addWin.title = "Add New Submenu"
    addWin.move((Stage.width/2)-addWin._width,(Stage.height/2)-addWin._height)

```
