# Depth control

**URL:** <https://forum.kirupa.com/t/depth-control/217566>\
**Category:** flash\
**Created:** [February 28, 2007, 12:16am UTC](https://forum.kirupa.com/t/depth-control/217566 "2007-02-28T00:16:27Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![FlashFish](https://avatars.discourse-cdn.com/v4/letter/f/b9e5f3/32.png) [@FlashFish](https://forum.kirupa.com/u/FlashFish)\
**Post date:** [February 28, 2007, 12:16am UTC](https://forum.kirupa.com/t/depth-control/217566/1 "2007-02-28T00:16:27Z")

</div>

Yo. I’ve got 4 ‘windows’ (mcs) that are draggable over a background image. Clicking on a ‘window’ brings it to the front. That’s great.

What I need is to be able to send each window to a different level on mouse click. So imagine the windows have been played with and some overlap others. I need to be able to click window1 down to level1, (I need the background image to be in the background all the time so level 0?) and also click window2 down to level2 etc. This:

mx.behaviors.DepthControl.sendToBack(this); looked promising but I need sendToBack+1 or specific target levels.

Thanks in advance.
