Label中字自动换行

l.mx_internal::getTextField().wordWrap = true;
<mx:Script>
  <![CDATA[
   [Bindable]
   private var str:String  = "";
   private function startTest():void
   {
    l.mx_internal::getTextField().wordWrap = true;
    str = "123456789123456789";
   }
  
  ]]>
</mx:Script>
<mx:Button click="{startTest()}"/>
<mx:Label id="l" x="199" y="163" width="70" text="{str}" height="51"/>

你可能感兴趣的:(label)