flex 3 TextArea控件的用法
flex 3 TextArea控件的用法
要说的有2个标签<mx:text>和<mx:htmlText>,其中<mx:htmlText>可以使用设置html格式的字符
<?xml version="1.0"?>
<!-- Simple example to demonstrate the TextArea control. -->
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">
<mx:Panel title="TextArea Control Example" height="75%" width="75%"
paddingTop="10" paddingBottom="10" paddingLeft="10" paddingRight="10">
<mx:TextArea width="400" height="100">
<mx:text>
This is a multiline, editable TextArea control. If you need
a non-editable multiline control, use the Text control.
</mx:text>
</mx:TextArea>
<mx:TextArea width="400" height="100">
<mx:htmlText><![CDATA[This is <font color="#FF0000">显示红色</font> in a <b>TextArea control</b>. Use the
<u>htmlText property</u> of the <font color="#008800">TextArea control</font> to include basic HTML markup in your text.]]
></mx:htmlText>
</mx:TextArea>
</mx:Panel>
</mx:Application>
原创文章转载请注明出处:云飞扬IT的blog





