# \[mx\] : set depth

**URL:** <https://forum.kirupa.com/t/mx-set-depth/31654>\
**Category:** flash\
**Created:** [September 25, 2003, 11:46am UTC](https://forum.kirupa.com/t/mx-set-depth/31654 "2003-09-25T11:46:14Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pect](https://avatars.discourse-cdn.com/v4/letter/p/dfb087/32.png) [@Pect](https://forum.kirupa.com/u/Pect)\
**Post date:** [September 25, 2003, 11:46am UTC](https://forum.kirupa.com/t/mx-set-depth/31654/1 "2003-09-25T11:46:14Z")

</div>

Is there anyway to set the depth of a mc, let’s say that I have:

mc\_00.getDepth() = 100;  
mc\_01.getDepth() = 101;  
…  
mc\_99.getDepth() = 199;

and I want to change their depth so that:

[changed] mc\_00.getDepth() = [old] mc\_00.getDepth() - 20;  
[changed] mc\_01.getDepth() = [old] mc\_01.getDepth() - 20;  
…  
[changed] mc\_99.getDepth() = [old] mc\_01.getDepth() - 20;
