Problem with if statements

Hey Guys,

Sorry, I’ve been looking at tutorials and forums for the last couple of days now to sort this out and think I’m confusing myself more and more!

I have a movieclip in my main timeline as a menu. I want to go to a different scene in the main swf file depending on what scene I am in.

Right now I’m using an if statement on the button within the menu(see below) but when I click on the button it only plays the first line of the if statement. Can anyone help please?

on (rollOver, dragOver) {
gotoAndPlay(“s1”);
}
on (rollOut, dragOut) {
gotoAndPlay(“s2”);
}
on (release) {
if (_root._currentframe == “info”) {
}
_root.gotoAndPlay(“infoimages”);
if (_root._currentframe == “cuttings”) {
}
_root.gotoAndPlay(“cuttingsimages”);
if (_root._currentframe == “contact”) {
}
_root.gotoAndPlay(“contactimages”);

Thanks
P
:h: