below code : rotate by mouse

onEnterFrame = function(){


hero._rotation=getmouse(hero);

}

getmouse = function (mc:MovieClip):Number{


dy=_ymouse-mc._y;
dx=_xmouse-mc._x;
rad =Math.atan2(dy, dx);

rotate= rad*180/Math.PI;
return rotate;
}