Flash error!

I added buttons frames where it have to go and when i finsih and look “test movie” it says an error!

Error Scene=Scene 1, layer=news, frame=1:Line 1: Statement must appear within on handler
gotoAndStop(1);

Error Scene=Scene 1, layer=about, frame=1:Line 1: Statement must appear within on handler
gotoAndStop(2);

Error Scene=Scene 1, layer=members, frame=1:Line 1: Statement must appear within on handler
gotoAndStop(3);

Error Scene=Scene 1, layer=varia, frame=1:Line 1: Statement must appear within on handler
gotoAndStop(4);

Error Scene=Scene 1, layer=contact, frame=1:Line 1: Statement must appear within on handler
gotoAndStop(5);

Total ActionScript Errors: 5 Reported Errors: 5

What does that means?