Two ways to do this.  The one I have used is to put the thing you want to
rotate on a canvas and assign negative x,y values to it so its center is at
the 0,0 of the canvas.. Thus, the rotation about the top/left of the parent
canvas become becomes rotation about the center of the child.

 

The other way is to use a matrix transformation.  I have not done this yet,
but it essentially does the same thing, moving the rotation registration
point.

 

Tracy Spratt,

Lariat Services, development services available

  _____  

From: [email protected] [mailto:[email protected]] On
Behalf Of hworke
Sent: Saturday, October 03, 2009 6:17 PM
To: [email protected]
Subject: [flexcoders] rotate button

 

  


I am trying to create a vertical button!!! Basically a 90 degree rotation
and embedded text will do that. But the problem is that rotation="90"
command will rotate the button centering top left corner which is the x/y
coordinate of the button. I do want to rotate it at the center of the
button. How do I do that?

Regards...



Reply via email to