What's wrong with my actionscript?

Can somebody please tell me what’s wrong with this code??

on (release) (
gotoAndPlay(31);
)

I’m putting it in a button so I can get to frame 31 and start playing. I keep getting the same message which I won’t post here because I have the spanish version but is about the expext me to put ‘(’ and ‘)’.

I’m trying to teach myself, please be patient and understand I don’t know the basics very well.