# loadMovie and swapDepths

**URL:** <https://forum.kirupa.com/t/loadmovie-and-swapdepths/250128>\
**Category:** flash\
**Created:** [January 25, 2008, 8:38pm UTC](https://forum.kirupa.com/t/loadmovie-and-swapdepths/250128 "2008-01-25T20:38:54Z")\
**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 25, 2008, 8:38pm UTC](https://forum.kirupa.com/t/loadmovie-and-swapdepths/250128/1 "2008-01-25T20:38:54Z")

</div>

i have base.swf, where i load 2 movieclips (porta1.swf ; porta2.swf). if i rollover on porta1, porta 1 must go in front of all other clips. Same effect for porta2.swf

i put  
on(rollover){this.swapDephs(998)}  
on(rollout){this.swapDephs(1)}

same in porta 2…

but it doesn’t work…

how can i do this ???
