BTA Flexing

My passion RIAs…………..Shardul Singh Bartwal

Rotating Display Object around its Center

Posted by Shardul Singh Bartwal on July 19, 2009

Sometimes back I was looking for how to rotate any component from its Center.But I don’t got any proper solution for that.As all of us know the registration point of the any display object are its top left point i.e (0,0).Hence I used the ‘Rotation Effect’,and used the originX and originY for finding the center of the Display object.But I know that it was not proper solution.Currently I am here with the proper solution.Its very simple to acheive.You can also get the source code from here.Below is the Link.
Click Here For RotationDemo Source Code.

Advertisements

3 Responses to “Rotating Display Object around its Center”

  1. Sam said

    Hi Shardul,

    Fantastic solution for rotating image from center point. I like it.

    Thanks

  2. pete said

    Hey ,

    i am searching such solution from long time and it is really cool

  3. Marceu said

    Dude, that was fantastic. That saved me a lot of time. There’s still good ppl in the world :))

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

 
%d bloggers like this: