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="标 签 换 行" width="31" height="107" backgroundColor="#C7E09F" fontSize="15" buttonMode="true" mouseChildren="false"/>
</s:Application>

浙公网安备 33010602011771号