That error message comes out when you put variables and fuction on a movieclip without an onClipEvent. Just add
Code:
onClipEvent(load){
on (press){
gotoAndPlay(2);
} 
}
and everything else you want to add to that, be sure to be inside the onClipEvent. Also i think you have to remove the "for" you wrote there


Hope this helps [simplequestions]