# SwapDepths and gotoAndPlay Movie problems

**URL:** <https://forum.kirupa.com/t/swapdepths-and-gotoandplay-movie-problems/298258>\
**Category:** flash\
**Created:** [October 15, 2009, 4:09pm UTC](https://forum.kirupa.com/t/swapdepths-and-gotoandplay-movie-problems/298258 "2009-10-15T16:09:02Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sptnkk](https://avatars.discourse-cdn.com/v4/letter/s/c4cdca/32.png) [@Sptnkk](https://forum.kirupa.com/u/Sptnkk)\
**Post date:** [October 15, 2009, 4:09pm UTC](https://forum.kirupa.com/t/swapdepths-and-gotoandplay-movie-problems/298258/1 "2009-10-15T16:09:02Z")

</div>

I am trying to get a FLA to work correctly. I have 4 movies that I want to play with a navigation swapping the movies to the front as clicked. When I use the navigation, the first few movies work great, but as I click through they start to get a little jumbled, and it breaks.

I am using this script for the buttons to call on the movies:

on (release) {  
//x +=4;  
\_root.Movie\_Working.swapDepths(+4);  
\_root.Movie\_Working.gotoAndPlay(2);  
\_root.gotoAndStop(“Working”);  
}

I would think this would be simple enough, but its cracking. Can anyone give me a clue on what I am missing in my script? I have tried this 3 different ways and its coming out the same. The file is too big to upload (2,200kb), but if anyone wants to take a look, please email me.

Thanks in advance  
Eric  
[eric@sputnikk.com](mailto:eric@sputnikk.com)
