# Rotating a textfield in a circular path

**URL:** <https://forum.kirupa.com/t/rotating-a-textfield-in-a-circular-path/245877>\
**Category:** flash\
**Created:** [December 5, 2007, 4:12am UTC](https://forum.kirupa.com/t/rotating-a-textfield-in-a-circular-path/245877 "2007-12-05T04:12:47Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![cauchy](https://avatars.discourse-cdn.com/v4/letter/c/a88e57/32.png) [@cauchy](https://forum.kirupa.com/u/cauchy)\
**Post date:** [December 5, 2007, 4:12am UTC](https://forum.kirupa.com/t/rotating-a-textfield-in-a-circular-path/245877/1 "2007-12-05T04:12:47Z")

</div>

Hi,

I’m having a problem with a movieclip that contains an object (a circle) in the middle. Off to the side is a text field. I want to rotate the whole movie clip at pre-determined degree increments and have the text field follow along. Although it does rotate, it will not follow a concentric circular path about the center–it’s path is skewed by something–perhaps a transformation point that I can’t locate. Other objects within the same movie clip do rotate properly.

I’ve attached a sample fla that demonstrates the problem by clicking the button to rotate the clip 90 degrees with each click.

Here is the stage code:[INDENT]button\_mc.addEventListener(MouseEvent.CLICK, onClick);

function onClick (event:MouseEvent):void  
{

```
circle_mc.rotation +=90;
var currentRotation:Number = circle_mc.rotation;

circle_mc.dt_txt.text = currentRotation;
circle_mc.dt_txt.rotation = -currentRotation;

trace("current rotation = " + currentRotation);

```

}

button\_mc.buttonMode = true;  
[/INDENT]Thanks!
