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”;
} else if (_root.currMovie != “section1”) {
if (container._currentframe >= container.midframe) {
_root.currMovie = “section1”;;
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:
please help