I'm coding a proof-of-concept experiment to myself about buttons switching frames in flash CS4. Whenever i press the button when I run this however, it gives this error message, and I don't know what it means. "ArgumentError: Error #1063: Argument count mismatch on Untitled_fla::MainTimeline/NextFrame(). Expected 0, got 1.". Help?
stop();
var page = 1;
button.addEventListener(MouseEvent.CLICK, NextFrame);
function NextFrame(){
gotoAndPlay(2);
};