# Depth setting

**URL:** <https://forum.kirupa.com/t/depth-setting/176644>\
**Category:** flash\
**Created:** [January 25, 2006, 7:34pm UTC](https://forum.kirupa.com/t/depth-setting/176644 "2006-01-25T19:34:42Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dirksmith](https://avatars.discourse-cdn.com/v4/letter/d/47e85d/32.png) [@dirksmith](https://forum.kirupa.com/u/dirksmith)\
**Post date:** [January 25, 2006, 7:34pm UTC](https://forum.kirupa.com/t/depth-setting/176644/1 "2006-01-25T19:34:42Z")

</div>

Hi

I’ve set a series of movie clips buttons to automatically assume the highest position on on mouse press - however, I’d like the movie clips to remain under (a lower depth) a movie clip (a ‘picture frame’) on another higher layer.

The depth change for the movie clip buttons was achieved using:

on (press) {  
//Start Dragging Movieclip Behavior  
startDrag(this, false, 168, 224, 564, 476);  
this.swapDepths(this.\_parent.getNextHighestDepth());

//End Behavior

Any ideas on assigning a higher depth to the ‘picture frame’ on the highest layer - so effectively the movie clip buttons remian underneath it.

I tried masking but not working.

Thanx

Dirk
