A eror in flash

Helo.
Help me pls to resolve this…
I have made a button…
In the button action script i have put
gotoAndStop(2);
Then…
When i go to make the movie a error apears :
Error Scene=Scene 1, layer=Backgorund, frame=1:Line 1: Statement must appear within on handler
stop();

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

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

Total ActionScript Errors: 3 Reported Errors: 3
Every time when I put a button
Pls help me…

A…
Can you make me pls a model of a nice sound buton(with to bottons thet will Increas and decreas sound Volume…)
pls help me…

Those error happens because those actions need to be declared inside an on handler, for example on(press), on(release)