[Flashcoders] Rotate in absolute center AS3

2007-06-04 Thread João Paulo Gino do Rego
Hey there, I need rotate Bitmap texture in AS3. I use object.rotate = 45 unhappyness the rotate is no absulute center. The rotate is corner high left. What is happends? How to set position pivot in center. I need the texture rotate in with the self center. Thank a lot

Re: [Flashcoders] Rotate in absolute center AS3

2007-06-04 Thread sean
Presumably this is a programatically created bitmap. I don't know if you can set the registration point of the movieclip or sprite within which I assume it lives programatically within AS3 programatically (sorry, haven't looked into this since AS2), however, even if you can, the principal is the

Re: [Flashcoders] Rotate in absolute center AS3

2007-06-04 Thread Jobe Makar
Hi, The code below I copied from somewhere else and have saved it to eventually test. So, I cannot verify that it *definately* does the trick. However, using rotateAroundExternalPoint should allow you to rotate around the center. You'd just need to specify the clip's center. This example code