Problem with button

i have a button that is a mc, looks like this

and another mc in wich i load my swf files


the action that i need for my button is

on (release) {
if (_root.currMovie == undefined) {
_root.currMovie = “section1”;
container.loadMovie(“section1.swf”);
} else if (_root.currMovie != “section1”) {
if (container._currentframe >= container.midframe) {
_root.currMovie = “section1”;
container.play();
}
}
}
but my button is the same mc but with difrent text that i assign in the main mc

how can i make this work?

the action is made from the tutorial found here: http://www.kirupa.com/developer/mx2004/transitions.htm
please help