views:

2251

answers:

2

I'd like to create a button that is basically a rotated 90's so that it is in effect a vertically aligned button. So that the the text is like that of a book spine.

Thanks in advance.

+5  A: 

You need to set the rotation property of the button... so the mxml would be something like:

<mx:Button id="myButton" label="CLICK ME"  rotation="90" />

Edit

As a side note you will probably need to embed the font you are using if you want the text to be visible after the component has been rotated

James Hay
If you target Flash Player 10, you don't have to embed the font.
joshtynjala
Really thats good news...I hate that rotated text disappears!
John Isaacks
A: 

And how do we embed the the font in a button for the text to be visible. I tried embedding the font but the text is still invisible. Could you please post some sample code that works right in vertical mode?

I'll be very thankful

Aqeel Aslam