Rotate & Mouse

I need a mc to rotate to the mouse, now it works but only if its not in another movieclip, what i mean is i have a movieclip in a movieclip which will rotate when the mouse moves.

My script is on a mousemove Event.

Xd = _root.cursor._x-_x;
Yd = _root.cursor._y-_y;
radAngle = Math.atan2(Yd, Xd);
_rotation = int((radAngle360/(2Math.PI))+90);