# Change Stacking Order (swapDepths)

**URL:** <https://forum.kirupa.com/t/change-stacking-order-swapdepths/244057>\
**Category:** flash\
**Created:** [November 13, 2007, 11:38pm UTC](https://forum.kirupa.com/t/change-stacking-order-swapdepths/244057 "2007-11-13T23:38:27Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ScmykOTT](https://avatars.discourse-cdn.com/v4/letter/s/ed8c4c/32.png) [@ScmykOTT](https://forum.kirupa.com/u/ScmykOTT)\
**Post date:** [November 13, 2007, 11:38pm UTC](https://forum.kirupa.com/t/change-stacking-order-swapdepths/244057/1 "2007-11-13T23:38:27Z")

</div>

Hi, I was reading an old article about swapDepths and was wondering if you could explain how you’d increase a second panel relative to the panel being dragged.

> [SIZE=2]If I want another panel to increase its stacking order in relation to this panel, I can blindly increase the stacking position of that panel, or, I can increase a variable stored on the main timeline by a certain value so all movie clips are in sync.[/SIZE]

To describe my project, I have 4 nav movieclips that I want to swap depths on rollover and also bring a movieclip of a opacity fade-in up to one depth below the mc the mouse is over.

So basically I’m looking for this when I rollover MC1:  
[MC1]  
[OPACITY\_MC]  
[MC2]  
[MC3]  
[MC4]

Any help would be sweet. Thanks.  
Scott
