Flex4中label换行

在as中赋值 label.text="aaaaa \r\n bbbbbbb"
在mxml中赋值 text="aaaaaa 
 bbbbbbb"

<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009
      xmlns:s="library://ns.adobe.com/flex/spark" 
      xmlns:mx="library://ns.adobe.com/flex/halo" minWidth="1024" minHeight="768">
  <fx:Declarations>
     <!-- Place non-visual elements (e.g., services, value objects) here -->
  </fx:Declarations>
  <s:Label x="140" y="134" text="标&#13;签&#13;换&#13;行" width="31" height="107" backgroundColor="#C7E09F" fontSize="15"           buttonMode="true" mouseChildren="false"/>
</s:Application>

posted @ 2012-08-29 14:55  小小有  阅读(285)  评论(0)    收藏  举报