Help needed! Navigating through scenes

Hi to all the gurus,

I need some help from you guys regarding this issue that I have. Here’s the scenario:

There are 7 scenes and one main interface that is suppose to control all the navigation in between the scenes. The interface is in the library and consists of a ‘BACKWARD’ and ‘FORWARD’ button which has some actions attached to them. What I did was dragging the main interface from the library but the button doesn’t appear to be functioning. Could you guys help, please?

p/s: The coding on the ‘FORWARD’ button is as follows:

on (release) {
if (pageNo == 1) {
gotoAndPlay(“Screen 2”, 1);
}
if (pageNo == 2) {
gotoAndPlay(“Screen 3”, 1);
}
if (pageNo == 3) {
gotoAndPlay(“Screen 4”, 1);
}
if (pageNo == 4) {
gotoAndPlay(“Screen 5”, 1);
}
if (pageNo == 5) {
gotoAndPlay(“Screen 6”, 1);
}
if (pageNo == 6) {
gotoAndPlay(“Screen 7”, 1);
}
}