Button inside movie clip

i have a movie clip with a button inside, i cant get the button to work. i want the button on release go to frame 37. anybody that can help?

>i want the button on release go to frame 37

Which time line? The following will move the main timeline to frame 37 if a button inside a movie called myMovieClip is clicked.


myMovieClip.myButton.onRelease=function(){
gotoAndStop(37);
}

Make sure all your movies/buttons have instance names in the properties panel