Help please on external swf

I posted earlier but am not having any luck. I am trying to load 2 external swf’s into mc’s container and container2 on _root with their own buttons on _root. The buttons load the swf’s into both the containers or just one, sometimes the wrong one. I think it is the _root.currMovie that is clashing between the two containers, here is the code for the two sets of buttons:-

this.onRelease = function(){
if (_root.currMovie == undefined) {
_root.currMovie = “weather”;
_root.container.loadMovie(“weather.swf”);
} else if (_root.currMovie != “weather”) {
if (_root.container._currentframe>= _root.container.midframe) {
_root.currMovie = “weather”;
_root.container.play();
}
}
}

this.onRelease = function(){
if (_root.currMovie == undefined) {
_root.currMovie = “course”;
_root.container2.loadMovie(“course.swf”);
} else if (_root.currMovie != “course”) {
if (_root.container2._currentframe>= _root.container2.midframe) {
_root.currMovie = “course”;
_root.container2.play();
}
}
}

This is probably easy as pie and I’m sorry to waste your time but i’m desperate to get this fixed, PLEASE HELP!