Hi ,

     I want to load some Chinese text in TextInput and Rotate the
TextInput 90'
.i tried implementing it the appliction works perfect with English
text. but with chinese font how to use it.

Below is the Code.

<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml";
layout="absolute" creationComplete="init()">

<mx:Script>

        <![CDATA[

                        import flash.system.IME;
                        import flash.system.IMEConversionMode;
                        import mx.controls.Alert;

        public function init():void
        {

                Alert.show(""+Capabilities.hasIME);
                /*
                IME.conversionMode = IMEConversionMode.CHINESE;
                IME.enabled = true;
                text1.imeMode = "CHINESE";
                */

        }
        public function rotateText():void
        {
                text1.rotation += 90;

        }



        ]]>
</mx:Script>
        <mx:Style>

                @font-face {
                        src : url('/assets/ARIAL.TTF');
                        font-family : myFont;

                                }
                                .myEmbed
                                {
                                        font-family : myFont;
                                        font-weight : light;
                                }

        </mx:Style>



        <mx:TextInput id="text1" styleName="myEmbed" rotation="0" x="156"
y="94" text="asdfasd对印度证券交易" height="20"/>
        <mx:Button x="204" y="182" label="Click to Rotate" click="rotateText
()"/>


</mx:Application>



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Flex 
India Community" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/flex_india?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to