Playing Exit Movies

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 =)