# Complicated depth problem

**URL:** <https://forum.kirupa.com/t/complicated-depth-problem/238290>\
**Category:** flash\
**Created:** [September 9, 2007, 2:36pm UTC](https://forum.kirupa.com/t/complicated-depth-problem/238290 "2007-09-09T14:36:03Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![RaymondP](https://avatars.discourse-cdn.com/v4/letter/r/f14d63/32.png) [@RaymondP](https://forum.kirupa.com/u/RaymondP)\
**Post date:** [September 9, 2007, 2:36pm UTC](https://forum.kirupa.com/t/complicated-depth-problem/238290/1 "2007-09-09T14:36:03Z")

</div>

heres basicly my problem , im attaching movieclips to \_root using a string called depth which increases by 1 everytime a movieclip is added . so ive got the entire 101 - 200 depth range for movieclips 201 - 301 is for my ui and so forth .

So everything is working nicly but theyres just one problem , i have a drager movieclip and when its clicked i want to set its depth to 199 or something.like getnexthighestdepth but i have to keep it inside the 100-200 range, i cant usea container movieclip either because thatwillmess up the window manager

any ideas ?
