1.
var str:String="WELCOME TO XIAMEN"; //这里改成你从XML里读进来的信息
var myfd:FontDescription=new FontDescription("宋体");
var myformat:ElementFormat=new ElementFormat(myfd,36,0xff0000,1,"rotate270");
myformat.trackingLeft=10;
myformat.trackingRight=10;
var mytx:TextElement=new TextElement(str,myformat);
var myblock:TextBlock=new TextBlock();
myblock.content=mytx;
myblock.lineRotation="rotate90";
var mytxline:TextLine=myblock.createTextLine();
mytxline.x=500;
mytxline.y=100;
addChild(mytxline);
2.
var myText:TextField = new TextField();
myText.autoSize = "center";
myText.text = "想咋排就咋排横排竖排随便排".split("").join("/n");
addChild(myText);
竖排后的文字再恢复成横排
myText.text = myText.text.split("/r").join("");
3.
<mx:Application xmlns:mx=" http://www.adobe.com/2006/mxml " layout="absolute">
<mx:Text x="408" y="315" text="Text" width="97" height="142" textAlign="center" id="testxxx" paddingTop="20"/>
<mx:VBox x="123" y="165" height="97" width="192" id="aaaa" borderColor="0x999999" backgroundColor="0xff0000">
<mx:Label text="Label" width="191" height="96" textAlign="center" paddingTop="{aaaa.height/2}"/>
</mx:VBox>
</mx:Application>