I have a dynamically created movie clip which contains a text field.
I then rotate the move clip by 20 degrees.
I then want to center the clip on the stage. But the width and height readings, along with positioning x and y makes it position in the wrong place, which I guess is due to the registration point.
Is there a work around to this?
This is flash 8, as2
Center align the text field to the movie clip. If you are dynamically setting the text and the text field is auto sizing, remember to re-apply the center alignment of the text field:
If you keep the movie clip at the center of the stage, the text field will appear to stay center as well. Regardless of the rotation of the movie clip.