Please somebody help me with my character movement script

my movement script looks like this:(ActionScript2.0)

onClipEvent (load) {
jumping = true;
speed = 0;
maxmove = 15;
jump = 0;
}
onClipEvent (enterFrame) {
if (_root.dead) {
this.gotoAndStop(“dead”);
} else {
speed *= .85;
if (dir == “right”) {
if (speed>0) {
dir = “right”;
} else if (speed<0) {
dir = “left”;
}
if (dir == “right”){
this._x += speed;
_root._x -= speed;
}
if (dir == “left”) {
this._x += speed;
_root._x -= speed;
}
if (Key.isDown(Key.LEFT)) {
if (speed>-maxmove) {
speed–;
}
this.gotoAndStop(“run”);
} else if (Key.isDown(Key.RIGHT)) {
if (speed<maxmove) {
speed++;
}
this.gotoAndStop(“run”);
} else if (speed<1 && speed>-1) {
speed = 0;
this.gotoAndStop(“idle”);
}
if (Key.isDown(Key.UP) && !jumping) {
jumping = true;
}
if (jumping) {
this.gotoAndStop(“jump”);
this._y -= jump;
jump -= .5;
if (jump<0) {
falling = true;
}
if (jump<-15) {
jump = -15;
}
}
if (_root.ground.hitTest(this._x, this._y, true) && falling) {
jump = 12;
jumping = false;
falling = false;
}
}
}

BUT WHEN IM TRYING TO PLAY THE GAME I GET THE FALLOWING ERRORS:

Statement block must be terminated by '}'
onClipEvent (enterFrame) {

Syntax error.
}

That would be great if somebody send me the fixed version becouse i cant fix it…im rly beginner at action sript