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 same as doing it manually.

Calculate the bitmap's width and height, divide them by 2 and position the
x and y to be minus these figures, as the default for the registration
point is x:0 and y:0 (top left hand corber). So, what ever the bitmap
width and hight, you would set (this is formula, not code btw):

bitmap x = bitmap x - (bitmap width / 2)
bitmap y = bitmap y - (bitmap height / 2)



S.

> 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
> _______________________________________________
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com
>


_______________________________________________
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to