Thanks Tracy. I have tried both ways and they work as long as
   you are not resizing the parent canvas. But my requirement is
   that the parent canvas needs to be resizable. In simple language
   all I am looking for is a vertical label at the left side of the parent
   canvas that will stay at the vertical center even if the parent canvas
   resizes.






On Sun, Oct 4, 2009 at 7:12 PM, Tracy Spratt <[email protected]> wrote:

>
>
>  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