# createPopUp / createClassChildAtDepth

**URL:** https://forum.kirupa.com/t/createpopup-createclasschildatdepth/218404
**Category:** flash
**Created:** [March 7, 2007, 2:45pm UTC](https://forum.kirupa.com/t/createpopup-createclasschildatdepth/218404 "2007-03-07T14:45:00Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![footballkid4](https://avatars.discourse-cdn.com/v4/letter/f/bcef8e/32.png) [@footballkid4](https://forum.kirupa.com/u/footballkid4)
#### Post date: [March 7, 2007, 2:45pm UTC](https://forum.kirupa.com/t/createpopup-createclasschildatdepth/218404/1 "2007-03-07T14:45:00Z")

</div>

I’m working on a flash project for a website, and really don’t feel like using the Flash basic components (nor do I feel like customizing them, I would rather create my own).

So, I made a new MovieClip called Window and a class that is linked to that clip through the Linkage properties “AS 2.0 Class”. Everything works fine except for the fact that I would like to be able to use createPopUp to open my window, or createClassChildAtDepth. Does anyone know how exactly I should modify the script to get this functionality to work.

The AS class is attached, and I know it’s simple…the functionality of the window is very limited at the moment, as I still have more to do on it. But all I really need it to do is contain data…the window can be extremely simple.

The code I have tried to use is:

```auto
import mx.managers.PopUpManager;
import mx.managers.DepthManager;
PopUpManager.createPopUp(_root, Window, false);

```
