# Swap depth problem

**URL:** <https://forum.kirupa.com/t/swap-depth-problem/250358>\
**Category:** Uncategorized\
**Created:** [January 28, 2008, 10:01pm UTC](https://forum.kirupa.com/t/swap-depth-problem/250358 "2008-01-28T22:01:56Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![darthnacho](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/darthnacho/32/762_2.png) [@darthnacho](https://forum.kirupa.com/u/darthnacho)\
**Post date:** [January 28, 2008, 10:01pm UTC](https://forum.kirupa.com/t/swap-depth-problem/250358/1 "2008-01-28T22:01:56Z")

</div>

for base.swf the script is:  
loadMovie(“porta1.swf”,1);  
loadMovie(“porta2.swf”,2);  
and load porta1 in \_level1 and porta2 in \_level2

both movies (porta1 and porta2) have the same script: this.swapDepths(this.\_parent.getNextHighestDepth() );  
trace(this.getDepth());

also try with: this.swapDepths(999);

the output panel shows that dephs change but i still see porta2.swf in fornt of porta1.swf

i think is a path problem… or maybe there is another form to see the same efect

[URL=“[http://www.220volts.cl/clientes/example.swf](http://www.220volts.cl/clientes/example.swf)”]click here for example \>\>

ideas… ???
