Simple AS2 coded dressup game question

Hello there~
I just got Flash CS4, I’m not familiar with coding at all, and I’m trying to make a drag and drop dressup game. I’ve found tutorials for using AS2 coding to do this, but I keep getting an error.

Here is what I put in after “creating a symbol,” naming it “cap,” making it into a movie clip, switching the actions frame to AS1 & 2:

on (press) {
	startDrag ("cap");
}
on(release, releaseOutside){
	stopDrag("cap");
}

Anyone see anything wrong with it? I keep getting this error about line 1:

1087: Syntax error: extra characters found after end of program.

Help? ; n;