Movement Animation (Flash mx 2004)

Alright guys here’s my actionscript for flash mx 2004. What i’m trying to do is whenever the user presses the button it does an animation of the character turning, so I used the frame label and labeled the frames the actions I want the character to do such as “Jump, crouch, left, righ, and etc…” But the code isn’t working… Can someone fix my actionscript? Oh and i’m not sure how to do the jumping/gravity yet…but anyways. Here it is:

onClipEvent (enterFrame) { 
if (Key.isDown(Key.LEFT)) { 
_x -= speed; 
} 
if (Key.isDown(Key.RIGHT)) { 
_x += speed; 
} 
} 
onClipEvent(enterFrame) {
if(Key.isDown(Key.LEFT)){
this.gotoAndPlay(left);
}
if(Key.isDown(Key.RIGHT)){
this.gotoAndPlay(right);
}
if(Key.isDown(Key.UP)){
this.gotoAndPlay(jump);
}
if(Key.isDown(Key.DOWN)){
this.gotoAndPlay(crouch);
}
}