As tutorial question

I am currently trying to do a sound object tutorial I am having trouble with the “How to Start, Stop and Loop a Sound Object”
here is the <<<<link>>>>> I am getting 3 errors when using this [AS]on (press) {if (playing!=true) { _root.firstSound.start(0,999); playing=true;}[/AS]

here is the errors

Error Scene=Scene 1, layer=Layer 2, frame=1:Line 1: Statement block must be terminated by ‘}’
on (press) {

Error Scene=Scene 1, layer=Layer 2, frame=1:Line 5: Syntax error.
}

Total ActionScript Errors: 3 Reported Errors: 3

any help would be great