Need Help With Movie Clip Action Script

Hey I was going through the tutorials and came across the complex button tutorial and I was just wondering how i can get the complex button, when pressed to goto a certain frame of the main timeline and not the complex button timeline. Right now I have it set when press and release gotoandplay(2)…but it plays the button timeline and not the main timeline:

this.onEnterFrame = function(){

if(rewind == true){

prevFrame();

}

}

this.onRollOver = function(){

rewind = false;
play();

}

this.onRollOut = function(){

rewind = true;

}

this.onRelease = function(){

gotoAndPlay(2);

}

can anyone help me? thanks!