# Movie swapDepths or levels or getnexthighest help!

**URL:** <https://forum.kirupa.com/t/movie-swapdepths-or-levels-or-getnexthighest-help/324100>\
**Category:** Uncategorized\
**Created:** [August 2, 2011, 11:32am UTC](https://forum.kirupa.com/t/movie-swapdepths-or-levels-or-getnexthighest-help/324100 "2011-08-02T11:32:14Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![meeptreats](https://avatars.discourse-cdn.com/v4/letter/m/fbc32d/32.png) [@meeptreats](https://forum.kirupa.com/u/meeptreats)\
**Post date:** [August 2, 2011, 11:32am UTC](https://forum.kirupa.com/t/movie-swapdepths-or-levels-or-getnexthighest-help/324100/1 "2011-08-02T11:32:14Z")

</div>

Hello,

I have 5 photos which are separate movies that enlarge and then decrease. I have them arranged in a line, slighty overlapping with movies 1 and 5 underneath then 2 and 4 then 3 on the top level.  
I would like it so that when you roll over each movie it comes to the top level then when you rollout it goes back to it’s original position.  
I can’t seem to get the code right however and they keep going back in the wrong position. Here is the code that I have placed on each invisible button over each movie:

on (rollOver){  
laugh.swapDepths(1);  
laugh.gotoAndPlay(2);  
}

on (rollOut){  
laugh.swapDepths(0);  
laugh.gotoAndPlay(8);  
}

Please could anyone offer me any help as my brain is melting?!

Thanks!
