Another button problem. different buttons load same movie!

Hey again,

Ok so now i am having a new problem. i am using this code


stop();
this.portButton_mc.onRollOver = function() {
 portButton_mc.gotoAndPlay("_over");
}
this.portButton_mc.onRollOut = function() {
 portButton_mc.gotoAndPlay("_out");
}
this.portButton_mc.onPress = function() {
 if (currMovie == undefined) { 
currMovie = "andy"; 
container2.loadMovie("flash1.swf"); 
} else if (currMovie != "andy") { 
if (container2._currentframe >= container2.midframe) { 
currMovie = "andy"; 
container2.play(); 
} 
} 
}
this.portButton_mc2.onPress = function() {
 if (currMovie == undefined) { 
currMovie = "web"; 
container2.loadMovie("flash2.swf"); 
} else if (currMovie != "web") { 
if (container2._currentframe >= container2.midframe) { 
currMovie = "web"; 
container2.play(); 
} 
} 
}
this.portButton_mc2.onRollOver = function() {
 portButton_mc2.gotoAndPlay("_over");
}
this.portButton_mc2.onRollOut = function() {
 portButton_mc2.gotoAndPlay("_out");
}

Now for some reason when i test the movie using button 1 it will load the correct movie and then if i press button 2 it loads the same movie again :frowning:

And if i retest the movie and choose button 2 first it loads the correct movie but button one now repeats the same one!!

Please help, im about to die

Use the AS tags, they make it alot easier to read ([ as ] & [ /as] without the spaces)

stop();
this.portButton_mc.onRollOver = function() {
 portButton_mc.gotoAndPlay("_over");
}
this.portButton_mc.onRollOut = function() {
 portButton_mc.gotoAndPlay("_out");
}
this.portButton_mc.onPress = function() {
 if (currMovie == undefined) { 
currMovie = "andy"; 
container2.loadMovie("flash1.swf"); 
} else if (currMovie != "andy") { 
if (container2._currentframe >= container2.midframe) { 
currMovie = "andy"; 
container2.play(); 
} 
} 
}
this.portButton_mc2.onPress = function() {
 if (currMovie == undefined) { 
currMovie = "web"; 
container2.loadMovie("flash2.swf"); 
} else if (currMovie != "web") { 
if (container2._currentframe >= container2.midframe) { 
currMovie = "web"; 
container2.play(); 
} 
} 
}
this.portButton_mc2.onRollOver = function() {
 portButton_mc2.gotoAndPlay("_over");
}
this.portButton_mc2.onRollOut = function() {
 portButton_mc2.gotoAndPlay("_out");
}