
Код:
this.onMouseMove = function() {
var ang = Math.floor( Math.atan( this._xmouse/this._ymouse )*(180/Math.PI) );
_root.txt.text = "rotation: " + this._rotation + "\n" +
"angle:" + ang + "\n" +
"x: " + this._xmouse + "\n" +
"y: " + this._ymouse;
this._rotation = ang;
}
пытаюсь вращать некий клип всегда на мышку - в строке расчета угла каким-то раком меняются this._xmouse и this._ymouse =((
в чем трабла??