首页 > flex, flex 控件用法 > flex 3 TextArea控件的用法

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

本文链接: http://www.ajaxcn.net/archives/188

分类: flex, flex 控件用法 标签:
一键分享到:新浪微博分享  分享到网易微博    转贴到开心网  推荐到豆瓣  分享到QQ空间    RSS订阅
  1. 本文目前尚无任何评论.
  1. 本文目前尚无任何 trackbacks 和 pingbacks.