У Мена код поправь. у мя все работает.

Код:
onClipEvent (load) {
speed = 5;
//
function moving() {
xSpeed = 0;
ySpeed = 0;
xSpeed = speed*Math.sin(_rotation*(Math.PI/180));
ySpeed = speed*Math.cos(_rotation*(Math.PI/180));
_x += xSpeed;
_y -= ySpeed;
}
function rotation() {
Xpos = _root.player._x+_root.player.xSpeed;
Ypos = _root.player._y+_root.player.ySpeed;
circleXpos = this._x;
circleYpos = this._y;
x = Xpos-circleXpos;
y = Ypos-circleYpos;
r = Math.sqrt((x*x)+(y*y));
sinTheta = y/r;
theta = Math.asin(sinTheta);
// chedck quadrants & do the rotations
if (Xpos<circleXpos) {
NeedRotation = 270-(theta/0.0175);
} else if (Xpos>circleXpos) {
NeedRotation = theta/0.0175+90;
}
}
}
onClipEvent (enterFrame) {
rotation();
moving();
distance = Math.round(140*Math.random());
//
if (NeedRotation>_rotation+180) {
if (_rotation+(360-NeedRotation)>=15) {
_rotation -= 15;
}
} else {
if (NeedRotation-_rotation>15) {
_rotation += 15;
}
}
}