# Challenges with DepthManager

**URL:** <https://forum.kirupa.com/t/challenges-with-depthmanager/180811>\
**Category:** flash\
**Created:** [March 3, 2006, 4:19pm UTC](https://forum.kirupa.com/t/challenges-with-depthmanager/180811 "2006-03-03T16:19:40Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![voxecho](https://avatars.discourse-cdn.com/v4/letter/v/278dde/32.png) [@voxecho](https://forum.kirupa.com/u/voxecho)\
**Post date:** [March 3, 2006, 4:19pm UTC](https://forum.kirupa.com/t/challenges-with-depthmanager/180811/1 "2006-03-03T16:19:40Z")

</div>

[FONT=Comic Sans MS]I am killing myself trying to get the DepthManager to work… [/FONT]  
[FONT=Comic Sans MS]  
[/FONT]

```auto

[FONT=Comic Sans MS][COLOR=green]/*[/COLOR]
[COLOR=green]* this works great... but it's not using DepthManager i show [/COLOR]
[COLOR=green]* it only to illistrate that the library item is there and loading[/COLOR]
[COLOR=green] ***** /[/COLOR]
[COLOR=blue]var[/COLOR] me:[COLOR=blue]MovieClip[/COLOR] = [COLOR=red]_root[/COLOR].[COLOR=blue]attachMovie[/COLOR](
 "VoxEcho.control",
 "image_"+(++pics),
 [COLOR=red]_root[/COLOR].[COLOR=blue]getNextHighestDepth[/COLOR]()
);
[COLOR=green]/*[/COLOR]
[COLOR=green]* this too works, but each additional object i add causes the [/COLOR]
[COLOR=green]* one before it to go POOF[/COLOR]
[COLOR=green] ***** /[/COLOR]
[COLOR=blue]var[/COLOR] me:[COLOR=blue]MovieClip[/COLOR] = [COLOR=red]_root[/COLOR].[COLOR=blue]attachMovie[/COLOR](
 "VoxEcho.control",
 "image_"+(++pics),
 DepthManager.[COLOR=blue]kTop[/COLOR]
);
[COLOR=green]/*[/COLOR]
[COLOR=green]* ok, this is how the distructions tell me to do it[/COLOR]
[COLOR=green]* and nothing at all happens. Nothing loads, nothing [/COLOR]
[COLOR=green]* shows, and me == undefined[/COLOR]
[COLOR=green] ***** /[/COLOR]
[COLOR=blue]var[/COLOR] me:[COLOR=blue]MovieClip[/COLOR] = [COLOR=red]_root[/COLOR].[COLOR=blue]createChildAtDepth[/COLOR](
 "VoxEcho.control",
 DepthManager.[COLOR=blue]kTop[/COLOR]
);
[/FONT]

```

Thoughts?
