Help me with this

I have made a movieclip and i named it “mov”. The only thing is that…ii use flash mx2004 and if i use actionscript 1 and player 6 then it works…if i use actionscript 2 and player 7 it doesn’t work. Here it is:
[AS]x=mov._x; y=mov._y; speed=1;
_root.onEnterFrame = function() {
i++;
mov.duplicateMovieClip(“mov”+i,i);
_root[“mov”+i]._x=x;
_root[“mov”+i]._y=y;
if (Key.isDown(Key.RIGHT)) {
x+=speed;
}
if (Key.isDown(Key.LEFT)) {
x-=speed;
}
if (Key.isDown(Key.UP)) {
y-=speed;
}
if (Key.isDown(Key.DOWN)) {
y+=speed;
}
}
[/AS]