复制代码 代码如下:
private function rotationText(event:FlexEvent):void{
var text:String = event.currentTarget.text;
var length:int = text.length;
var newText:String = "";
for(var i:int = 0; i length; i++)
{
newText+=text.charAt(i)+"\r";
}
label.text = newText;
}
复制代码 代码如下:
s:Label id="label" text="我是K" x="100" y="40" initialize="rotationText(event)"/>
不解释了