Hi,
I'm rotating a textfield using transformAroundPoint. The rotation is initiated by a MouseEvent.MOVE. When I move the mouse arround for some time the textfield position drifts more and more away.
My Source Code:
private function btnRotateMouseMove(evt : MouseEvent) : void {
var mousePos : Point = new Point(this.stage.mouseX, this.stage.mouseY);
var origin : Point = _textobj.localToGlobal(_textobj.__origin);
var beta : Number = 180 * Math.atan((mousePos.y - origin.y) / (mousePos.x - origin.x)) / Math.PI;
TweenLite.to(_textobj.__textField, 0, {transformAroundPoint:{point: _textobj.__origin, rotation:beta}});
}
Is there any Solution?
Thank You