Problem with X and Y Movement

I have this player, and you use the left and right arrow keys to control him.
Well he has a running animation and this is the code:

onClipEvent(enterFrame){
    if (Key.isDown(Key.RIGHT)){
        _x += 10;
        this.gotoAndStop(2);
    } else {
        this.gotoAndStop(1);
    }
}
onClipEvent(enterFrame){
    if (Key.isDown(Key.LEFT)){
        _x -= 10;
        this.gotoAndStop(3);
    }
}

Well, on the Left Key Press, when you press it, he goes left, but he doesnt play his animation… why?
Any help would be awesome! :wink: