Else & If.... I Dont Get It

How come my actionscript doesn’t work?

As:

onClipEvent (enterFrame) {
if (Key.isDown (SPACE))
this.gotoAndStop (2)
} else {this.gotoAndStop (1)
}

Flash says the else does not match the if. And I’m stumped. So could some Flash Guru come gliding down from the sky to save me? ( :phil: )

Thanks :slight_smile: