# Playing Exit Movies

**URL:** <https://forum.kirupa.com/t/playing-exit-movies/299530>\
**Category:** flash\
**Created:** [November 6, 2009, 7:54am UTC](https://forum.kirupa.com/t/playing-exit-movies/299530 "2009-11-06T07:54:11Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![BUroKHUli](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/burokhuli/32/190_2.png) [@BUroKHUli](https://forum.kirupa.com/u/BUroKHUli)\
**Post date:** [November 6, 2009, 7:54am UTC](https://forum.kirupa.com/t/playing-exit-movies/299530/1 "2009-11-06T07:54:11Z")

</div>

This is a related post from my previous one. I got that figured so I moved on to my next problem.

Let’s say BUTTON 1 loads MOVIE 1. But there are 2 more buttons that loads 2 more movies.  
So let’s say the first of three movies was loaded, that’s movie 1. Is it possible that when you click on either of the remaining buttons to load another movie, the CURRENTMOVIE LOADED will play to exit first before the next movie  
will be loaded? I have the FLA attached for this question.

extend\_btn.onRelease = function() {  
if (\_root.var\_redline == false) {  
redline\_mc.gotoAndPlay(“extend”);  
}  
\_root.var\_redline = true;  
\_root.var\_whiteline = false;  
\_root.var\_yellowline = false;  
};

secondmovie\_btn.onRelease = function() {  
if (\_root.var\_whiteline == false) {  
whiteline\_mc.gotoAndPlay(“extend”);  
}  
\_root.var\_redline = false;  
\_root.var\_whiteline = true;  
\_root.var\_yellowline = false;  
};

thirdmovie\_btn.onRelease = function() {  
if (\_root.var\_yellowline == false) {  
yellowline\_mc.gotoAndPlay(“extend”);  
}  
\_root.var\_redline = false;  
\_root.var\_whiteline = false;  
\_root.var\_yellowline = true;  
};

Thank you =)
