Problems with actionscript

i keep getting this error, “statement must appear within on/onclipevent handler”
stop();

the movie works fine, and when i go to the frame, where the error occurs, nothing appears to be wrong.