Thanks, thats just what I needed!

M.

On 4/27/05, Abdul Qabiz <[EMAIL PROTECTED]> wrote:

Yeah,

you can use Label's  _rotation property. But you would need to embed the
font if you want to rotate a Label,TextInput or TextArea..

For example:

##RotateLabel.mxml##

<mx:Application xmlns:mx=" http://www.macromedia.com/2003/mxml" width="425"
height="400">
   <mx:Style>
      @font-face { fontFamily:myfont;
src:url(" file:///c:/windows/fonts/Georgia.TTF"); }

   </mx:Style>

    <mx:Canvas>
       <mx:Label fontFamily="myfont" fontSize="16" id="out" _rotation="45"
text="This is a label" alpha="20"/>
    </mx:Canvas>
</mx:Application>

-abdul

________________________________

From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com]
Sent: Wednesday, April 27, 2005 8:52 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Vertical Text- is it possible?


I'd like to know if there's a simple way to rotate a label placed on a
canvas?

M.

On 4/27/05, Abdul Qabiz < [EMAIL PROTECTED]> wrote:

        Hi Nithya,

        It's not there by default, but you can do it by keeping one
character per
        line in a Label or TextArea or TextInput. You can write a simple
        VerticalLabel component that would do it for you. For example:

        Look code below or find attached files.

        Hope that helps

        -abdul

        1) ##VerticalTextTest.mxmL##

        <?xml version="1.0" encoding="iso-8859-1"?>
        <mx:Application width="800" height="600"
        xmlns:mx=" http://www.macromedia.com/2003/mxml" xmlns:local="*">
            <local:VerticalLabel fontSize="15" text="Hey"/>
        </mx:Application>

        2) ##VerticalLabel.mxml##

        <mx:VBox xmlns:mx="http://www.macromedia.com/2003/mxml">
            <mx:Script>
                <![CDATA[

                    import mx.controls.Label;
                    import mx.controls.TextInput;
                    import mx.controls.Text;

                    var text:String;
                    var textField;

                    function createChildren():Void
                    {
                        var n = text.length;
                        textField = createChild(Label,"textField");
                        textField.styleName = this;

                        for(var i=0;i<n;i++)
                        {
                            textField.text+= text.charAt(i) + "\r";
                        }

                    }

                ]]>
            </mx:Script>
        </mx:VBox>

        ________________________________

        From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com]
        Sent: Wednesday, April 27, 2005 2:34 PM
        To: flexcoders
        Subject: [flexcoders] Vertical Text- is it possible?

        Hai!
              I want the text to be aligned vertically like:
        S
        H
        O
        P
        P
        I
        N
        G

        Is it possible with flex? If yes, how?

        regards,
        nithya

        ________________________________

        Yahoo! Messenger

<http://uk.rd.yahoo.com/mail/tagline_messenger/*http://uk.messenger.yahoo.co
        m>  - Communicate instantly..."Ping" your friends today! Download
Messenger
        Now

<http://uk.rd.yahoo.com/mail/tagline_messenger/*http://uk.messenger.yahoo.co
        m/download/index.html>

        ________________________________

        Yahoo! Groups Links

        *       To visit your group on the web, go to:
                 http://groups.yahoo.com/group/flexcoders/

        *       To unsubscribe from this group, send an email to:
                [EMAIL PROTECTED]
        <mailto: [EMAIL PROTECTED] ?subject=Unsubscribe>

        *       Your use of Yahoo! Groups is subject to the Yahoo! Terms of
Service
        <http://docs.yahoo.com/info/terms/> .

        Yahoo! Groups Links

< http://docs.yahoo.com/info/terms/>

________________________________

Yahoo! Groups Links

*       To visit your group on the web, go to:
         http://groups.yahoo.com/group/flexcoders/

*       To unsubscribe from this group, send an email to:
        [EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]?subject=Unsubscribe>

*       Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service
< http://docs.yahoo.com/info/terms/> .

Yahoo! Groups Links

<*> To visit your group on the web, go to:
     http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/




Yahoo! Groups Links

Reply via email to