It worked for me, I tried the rotation attribute and the Rotate effect.

<?xml version="1.0" encoding="utf-8"?>
<!-- Simple example to demonstrate the Rotate effect. -->
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"; 
    initialize="Font.registerFont(arial_font);">

    <mx:Script>
        <![CDATA[

            import flash.text.Font;
            
            [Embed("assets/ARIAL.TTF", fontName="MyArial")]
            public var arial_font:Class;

            [Bindable]
            public var angle:int=0;

            private function rotateImage():void {
                rotate.end();
                angle += 45;
                rotate.play();
            }
      ]]>
    </mx:Script>

    <mx:Rotate id="rotate" angleFrom="{angle-45}" angleTo="{angle}"
target="{myVB}"/>

    <mx:Panel title="Rotate Effect Example" horizontalAlign="center" 
        width="75%" height="75%" layout="horizontal"
        paddingTop="5" paddingLeft="10" paddingRight="10"
paddingBottom="5">

        <mx:VBox id="myVB" width="50%" horizontalAlign="center">
            <mx:Label text="Nokia 9930"  
                fontFamily="MyArial" fontSize="14" rotation="90"/>

            <mx:Image id="img" 
                source="@Embed(source='images/arrowBlue.png')"/>
        </mx:VBox>


        <mx:Text width="50%" color="blue" 
            text="Click the button to rotate the image 45 degrees. Use
an embedded font when applying the Rotate effect to text."/>

        <mx:ControlBar>
            <mx:Button label="Rotate 45 Degrees" click="rotateImage();"/>
        </mx:ControlBar>
    </mx:Panel>
</mx:Application>


Renaun
http://renaun.com


--- In flexcoders@yahoogroups.com, "Shannon Hicks" <[EMAIL PROTECTED]> wrote:
>
> I can't seem to get rotation to work properly for <mx:Text> (or any
other
> object that has text in it, including containers with text objects
in them).
>  
> I have followed Adobe's advice, and embedded a font. That allows me to
> rotate text 0-90 degrees clockwise, but anything over 90 degrees, or
> anything counter-clockwise makes the text disappear. Here's some code:
>  
>  <mx:Script>
>   <![CDATA[
>    [Embed(systemFont='Arial', fontName='myArial',
> mimeType='application/x-font')]
>    public var arial:Class;
>   ]]>
>  </mx:Script>
> 
> <mx:Label text="{fishHead.currentItem.fishName}" fontFamily="myArial"
> rotation="90"/>
>  
>  
> Any suggestions?
>  
> Shan
> 
> -- 
> No virus found in this outgoing message.
> Checked by AVG Free Edition.
> Version: 7.1.394 / Virus Database: 268.10.4/402 - Release Date:
7/27/2006
>






--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
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/
 



Reply via email to