Infinite scroll w/ buttons?

So I am making this web page school FBLA, kinda new at flash, and on a media page I put some pics that rotate with the mouse x axis, that I got from the tutorials - thanks! - but I added buttons, and I need the buttons to open up a pic, and I can’t figure out how to do that, I have tried making the buttons gotoAndPlay (“scene 1”, 31) and it wont do that, so I must be doing something wrong, like maybe it wont work because the buttons are going threw 2 movie clips, but I can’t figure it out, if anyone could help me. I have used this for my actionscript…

on (press) {
gotoAndPlay (“Scene 1”, 31)
}

and tried…

on (press) {
_root.gotoAndPlay (“Scene 1”, 31)
}

if anyone could help please, would be greatly appreciated!