Stuck trying to get a button to move to the next frame

in school here working on a flash project, i really hate mx 2004 :frowning:

any help on this code?

on (release) {gotoAndPlay(nextFrame();
);
}