<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>joel&#039;s FLEX blog &#187; TextArea</title>
	<atom:link href="http://blog.desizen.com/TAG/textarea/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.desizen.com</link>
	<description>FLEX,网络安全,Linux</description>
	<lastBuildDate>Fri, 13 May 2011 02:18:31 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>FLEX例子之文本(Text)文本域(TextArea)和文本输入框(TextInput)</title>
		<link>http://blog.desizen.com/4lone/307.html</link>
		<comments>http://blog.desizen.com/4lone/307.html#comments</comments>
		<pubDate>Tue, 30 Dec 2008 06:04:57 +0000</pubDate>
		<dc:creator>joel</dc:creator>
				<category><![CDATA[FLEX]]></category>
		<category><![CDATA[Text]]></category>
		<category><![CDATA[TextArea]]></category>
		<category><![CDATA[TextInput]]></category>
		<category><![CDATA[TourDeFlex]]></category>
		<category><![CDATA[例子]]></category>

		<guid isPermaLink="false">http://www.joelove.cn/?p=307</guid>
		<description><![CDATA[这个例子进行的是UI Controls:Data Entry Controls:Text and TextArea 因为这三个例子都没有什么特别的地方,所以就放在了一起. 简介: The Text control displays multiline, noneditable text. Use the Label control if you need only a single line of text. The Text control does not support scroll bars. If you need scrolling, you should use a non-editable TextArea control. You can format the text in a Text [...]]]></description>
			<content:encoded><![CDATA[<p>这个例子进行的是UI Controls:Data Entry Controls:<a href="http://blog.desizen.com/TAG/text" class="st_tag internal_tag" rel="tag" title="Posts tagged with Text">Text</a> and <a href="http://blog.desizen.com/TAG/textarea" class="st_tag internal_tag" rel="tag" title="Posts tagged with TextArea">TextArea</a><br />
因为这三个例子都没有什么特别的地方,所以就放在了一起.<span id="more-307"></span><br />
简介:<br />
The <a href="http://blog.desizen.com/TAG/text" class="st_tag internal_tag" rel="tag" title="Posts tagged with Text">Text</a> control displays multiline, noneditable <a href="http://blog.desizen.com/TAG/text" class="st_tag internal_tag" rel="tag" title="Posts tagged with Text">text</a>. Use the Label control if you need only a single line of <a href="http://blog.desizen.com/TAG/text" class="st_tag internal_tag" rel="tag" title="Posts tagged with Text">text</a>. The <a href="http://blog.desizen.com/TAG/text" class="st_tag internal_tag" rel="tag" title="Posts tagged with Text">Text</a> control does not support scroll bars. If you need scrolling, you should use a non-editable <a href="http://blog.desizen.com/TAG/textarea" class="st_tag internal_tag" rel="tag" title="Posts tagged with TextArea">TextArea</a> control.  You can format the <a href="http://blog.desizen.com/TAG/text" class="st_tag internal_tag" rel="tag" title="Posts tagged with Text">text</a> in a <a href="http://blog.desizen.com/TAG/text" class="st_tag internal_tag" rel="tag" title="Posts tagged with Text">Text</a> control using HTML tags, which are applied after the control&#8217;s CSS styles are applied. You can also put padding around the four sides of the <a href="http://blog.desizen.com/TAG/text" class="st_tag internal_tag" rel="tag" title="Posts tagged with Text">text</a>.</p>
<p>The <a href="http://blog.desizen.com/TAG/textarea" class="st_tag internal_tag" rel="tag" title="Posts tagged with TextArea">TextArea</a> control is a multiline <a href="http://blog.desizen.com/TAG/text" class="st_tag internal_tag" rel="tag" title="Posts tagged with Text">text</a> field with a border and optional scroll bars. The <a href="http://blog.desizen.com/TAG/textarea" class="st_tag internal_tag" rel="tag" title="Posts tagged with TextArea">TextArea</a> control supports the HTML rendering capabilities of Flash Player and AIR. </p>
<p>The <a href="http://blog.desizen.com/TAG/textinput" class="st_tag internal_tag" rel="tag" title="Posts tagged with TextInput">TextInput</a> control is a single-line <a href="http://blog.desizen.com/TAG/text" class="st_tag internal_tag" rel="tag" title="Posts tagged with Text">text</a> field that is optionally editable. All <a href="http://blog.desizen.com/TAG/text" class="st_tag internal_tag" rel="tag" title="Posts tagged with Text">text</a> in this control must use the same styling unless it is HTML <a href="http://blog.desizen.com/TAG/text" class="st_tag internal_tag" rel="tag" title="Posts tagged with Text">text</a>. The <a href="http://blog.desizen.com/TAG/textinput" class="st_tag internal_tag" rel="tag" title="Posts tagged with TextInput">TextInput</a> control supports the HTML rendering capabilities of Flash Player and AIR.</p>
<p>例子:</p>

<div class="wp_syntax"><div class="code"><pre class="mxml" style="font-family:monospace;"><span style="color: #000000;">&lt;?xml version=<span style="color: #ff0000;">&quot;1.0&quot;</span> encoding=<span style="color: #ff0000;">&quot;utf-8&quot;</span>?<span style="color: #7400FF;">&gt;</span></span>
<span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:Application</span> xmlns:mx=<span style="color: #ff0000;">&quot;http://www.adobe.com/2006/mxml&quot;</span> layout=<span style="color: #ff0000;">&quot;vertical&quot;</span> verticalAlign=<span style="color: #ff0000;">&quot;top&quot;</span></span>
<span style="color: #000000;">    horizontalAlign=<span style="color: #ff0000;">&quot;center&quot;</span> backgroundGradientColors=<span style="color: #ff0000;">&quot;[0x000000,0x323232]&quot;</span> paddingTop=<span style="color: #ff0000;">&quot;0&quot;</span> viewSourceURL=<span style="color: #ff0000;">&quot;srcview/index.html&quot;</span><span style="color: #7400FF;">&gt;</span></span>
    <span style="color: #000000;"><span style="color: #808080; font-style: italic;">&lt;!--Text例子--&gt;</span></span>
    <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:Panel</span> title=<span style="color: #ff0000;">&quot;Text Control&quot;</span> layout=<span style="color: #ff0000;">&quot;vertical&quot;</span> color=<span style="color: #ff0000;">&quot;0xffffff&quot;</span> borderAlpha=<span style="color: #ff0000;">&quot;0.15&quot;</span> width=<span style="color: #ff0000;">&quot;500&quot;</span></span>
<span style="color: #000000;">         paddingTop=<span style="color: #ff0000;">&quot;10&quot;</span> paddingRight=<span style="color: #ff0000;">&quot;10&quot;</span> paddingBottom=<span style="color: #ff0000;">&quot;10&quot;</span> paddingLeft=<span style="color: #ff0000;">&quot;10&quot;</span> horizontalAlign=<span style="color: #ff0000;">&quot;center&quot;</span><span style="color: #7400FF;">&gt;</span></span>
&nbsp;
         <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:Text</span> width=<span style="color: #ff0000;">&quot;100%&quot;</span> color=<span style="color: #ff0000;">&quot;0x323232&quot;</span><span style="color: #7400FF;">&gt;</span></span>
            <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:text</span><span style="color: #7400FF;">&gt;</span></span>
                This is a multiline, non-editable text component. 
                If you need an editable multiline component, use TextArea.
            <span style="color: #000000;"><span style="color: #7400FF;">&lt;/mx:text</span><span style="color: #7400FF;">&gt;</span></span>
        <span style="color: #000000;"><span style="color: #7400FF;">&lt;/mx:Text</span><span style="color: #7400FF;">&gt;</span></span>
        <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:HRule</span> width=<span style="color: #ff0000;">&quot;100%&quot;</span> <span style="color: #7400FF;">/&gt;</span><span style="color: #808080; font-style: italic;">&lt;!--横向分割线--&gt;</span></span>
        <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:Text</span> width=<span style="color: #ff0000;">&quot;100%&quot;</span> color=<span style="color: #ff0000;">&quot;0x323232&quot;</span><span style="color: #7400FF;">&gt;</span></span>
            <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:htmlText</span><span style="color: #7400FF;">&gt;</span></span>
                <span style="color: #000000;">&lt;!<span style="color: #66cc66;">&#91;</span>CDATA<span style="color: #66cc66;">&#91;</span>This is &lt;font color=<span style="color: #ff0000;">&quot;#EE1122&quot;</span><span style="color: #7400FF;">&gt;</span></span>HTML text<span style="color: #000000;">&lt;/font<span style="color: #7400FF;">&gt;</span></span> in a <span style="color: #000000;">&lt;b<span style="color: #7400FF;">&gt;</span></span>Text component<span style="color: #000000;">&lt;/b<span style="color: #7400FF;">&gt;</span></span>. Using the <span style="color: #000000;">&lt;u<span style="color: #7400FF;">&gt;</span></span>htmlText attribute<span style="color: #000000;">&lt;/u<span style="color: #7400FF;">&gt;</span></span> of the <span style="color: #000000;">&lt;font color=<span style="color: #ff0000;">&quot;#22A050&quot;</span><span style="color: #7400FF;">&gt;</span></span>Text component<span style="color: #000000;">&lt;/font<span style="color: #7400FF;">&gt;</span></span> you can use basic HTML markup.]]&gt;
            <span style="color: #000000;"><span style="color: #7400FF;">&lt;/mx:htmlText</span><span style="color: #7400FF;">&gt;</span></span>
        <span style="color: #000000;"><span style="color: #7400FF;">&lt;/mx:Text</span><span style="color: #7400FF;">&gt;</span></span>
&nbsp;
    <span style="color: #000000;"><span style="color: #7400FF;">&lt;/mx:Panel</span><span style="color: #7400FF;">&gt;</span></span>
<span style="color: #000000;"><span style="color: #7400FF;">&lt;/mx:Application</span><span style="color: #7400FF;">&gt;</span></span></pre></div></div>


<div class="wp_syntax"><div class="code"><pre class="mxml" style="font-family:monospace;"><span style="color: #000000;">&lt;?xml version=<span style="color: #ff0000;">&quot;1.0&quot;</span> encoding=<span style="color: #ff0000;">&quot;utf-8&quot;</span>?<span style="color: #7400FF;">&gt;</span></span>
<span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:Application</span> xmlns:mx=<span style="color: #ff0000;">&quot;http://www.adobe.com/2006/mxml&quot;</span> layout=<span style="color: #ff0000;">&quot;vertical&quot;</span> verticalAlign=<span style="color: #ff0000;">&quot;top&quot;</span></span>
<span style="color: #000000;">    horizontalAlign=<span style="color: #ff0000;">&quot;center&quot;</span> backgroundGradientColors=<span style="color: #ff0000;">&quot;[0x000000,0x323232]&quot;</span> paddingTop=<span style="color: #ff0000;">&quot;0&quot;</span> viewSourceURL=<span style="color: #ff0000;">&quot;srcview/index.html&quot;</span><span style="color: #7400FF;">&gt;</span></span>
&nbsp;
    <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:Panel</span> title=<span style="color: #ff0000;">&quot;TextArea Control&quot;</span> layout=<span style="color: #ff0000;">&quot;vertical&quot;</span> color=<span style="color: #ff0000;">&quot;0xffffff&quot;</span> borderAlpha=<span style="color: #ff0000;">&quot;0.15&quot;</span></span>
<span style="color: #000000;">         paddingTop=<span style="color: #ff0000;">&quot;10&quot;</span> paddingRight=<span style="color: #ff0000;">&quot;10&quot;</span> paddingBottom=<span style="color: #ff0000;">&quot;10&quot;</span> paddingLeft=<span style="color: #ff0000;">&quot;10&quot;</span> horizontalAlign=<span style="color: #ff0000;">&quot;center&quot;</span><span style="color: #7400FF;">&gt;</span></span>
&nbsp;
         <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:TextArea</span> width=<span style="color: #ff0000;">&quot;400&quot;</span> height=<span style="color: #ff0000;">&quot;60&quot;</span> color=<span style="color: #ff0000;">&quot;0x323232&quot;</span><span style="color: #7400FF;">&gt;</span></span>
            <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:text</span><span style="color: #7400FF;">&gt;</span></span>
                This is a multiline, editable TextArea control. If you need 
                a non-editable multiline control, use the Text control.
            <span style="color: #000000;"><span style="color: #7400FF;">&lt;/mx:text</span><span style="color: #7400FF;">&gt;</span></span>
        <span style="color: #000000;"><span style="color: #7400FF;">&lt;/mx:TextArea</span><span style="color: #7400FF;">&gt;</span></span>
&nbsp;
        <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:TextArea</span> width=<span style="color: #ff0000;">&quot;400&quot;</span> height=<span style="color: #ff0000;">&quot;60&quot;</span> color=<span style="color: #ff0000;">&quot;0x323232&quot;</span><span style="color: #7400FF;">&gt;</span></span>
            <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:htmlText</span><span style="color: #7400FF;">&gt;</span>&lt;!<span style="color: #66cc66;">&#91;</span>CDATA<span style="color: #66cc66;">&#91;</span>This is &lt;font color=<span style="color: #ff0000;">&quot;#EE1122&quot;</span><span style="color: #7400FF;">&gt;</span></span>HTML text<span style="color: #000000;">&lt;/font<span style="color: #7400FF;">&gt;</span></span> in a <span style="color: #000000;">&lt;b<span style="color: #7400FF;">&gt;</span></span>TextArea control<span style="color: #000000;">&lt;/b<span style="color: #7400FF;">&gt;</span></span>. Use the <span style="color: #000000;">&lt;u<span style="color: #7400FF;">&gt;</span></span>htmlText property<span style="color: #000000;">&lt;/u<span style="color: #7400FF;">&gt;</span></span> of the <span style="color: #000000;">&lt;font color=<span style="color: #ff0000;">&quot;#22A050&quot;</span><span style="color: #7400FF;">&gt;</span></span>TextArea control<span style="color: #000000;">&lt;/font<span style="color: #7400FF;">&gt;</span></span> to include basic HTML markup in your text.]]&gt;<span style="color: #000000;"><span style="color: #7400FF;">&lt;/mx:htmlText</span><span style="color: #7400FF;">&gt;</span></span>
        <span style="color: #000000;"><span style="color: #7400FF;">&lt;/mx:TextArea</span><span style="color: #7400FF;">&gt;</span></span>
&nbsp;
    <span style="color: #000000;"><span style="color: #7400FF;">&lt;/mx:Panel</span><span style="color: #7400FF;">&gt;</span></span>
<span style="color: #000000;"><span style="color: #7400FF;">&lt;/mx:Application</span><span style="color: #7400FF;">&gt;</span></span></pre></div></div>


<div class="wp_syntax"><div class="code"><pre class="mxml" style="font-family:monospace;"><span style="color: #000000;">&lt;?xml version=<span style="color: #ff0000;">&quot;1.0&quot;</span> encoding=<span style="color: #ff0000;">&quot;utf-8&quot;</span>?<span style="color: #7400FF;">&gt;</span></span>
<span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:Application</span> xmlns:mx=<span style="color: #ff0000;">&quot;http://www.adobe.com/2006/mxml&quot;</span> layout=<span style="color: #ff0000;">&quot;vertical&quot;</span> verticalAlign=<span style="color: #ff0000;">&quot;top&quot;</span></span>
<span style="color: #000000;">    horizontalAlign=<span style="color: #ff0000;">&quot;center&quot;</span> backgroundGradientColors=<span style="color: #ff0000;">&quot;[0x000000,0x323232]&quot;</span> paddingTop=<span style="color: #ff0000;">&quot;0&quot;</span> viewSourceURL=<span style="color: #ff0000;">&quot;srcview/index.html&quot;</span><span style="color: #7400FF;">&gt;</span></span>
&nbsp;
    <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:Panel</span> title=<span style="color: #ff0000;">&quot;TextInput Control&quot;</span> layout=<span style="color: #ff0000;">&quot;vertical&quot;</span> color=<span style="color: #ff0000;">&quot;0xffffff&quot;</span> borderAlpha=<span style="color: #ff0000;">&quot;0.15&quot;</span></span>
<span style="color: #000000;">         paddingTop=<span style="color: #ff0000;">&quot;10&quot;</span> paddingRight=<span style="color: #ff0000;">&quot;10&quot;</span> paddingBottom=<span style="color: #ff0000;">&quot;10&quot;</span> paddingLeft=<span style="color: #ff0000;">&quot;10&quot;</span> horizontalAlign=<span style="color: #ff0000;">&quot;center&quot;</span><span style="color: #7400FF;">&gt;</span></span>
&nbsp;
         <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:TextInput</span> id=<span style="color: #ff0000;">&quot;src&quot;</span> text=<span style="color: #ff0000;">&quot;Hello World!&quot;</span> color=<span style="color: #ff0000;">&quot;0x323232&quot;</span><span style="color: #7400FF;">/&gt;</span></span>
&nbsp;
        <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:Button</span> label=<span style="color: #ff0000;">&quot;Copy Text&quot;</span> click=<span style="color: #ff0000;">&quot;dest.text = src.text&quot;</span> color=<span style="color: #ff0000;">&quot;0x323232&quot;</span><span style="color: #7400FF;">/&gt;</span></span>
&nbsp;
        <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:TextInput</span> id=<span style="color: #ff0000;">&quot;dest&quot;</span> color=<span style="color: #ff0000;">&quot;0x323232&quot;</span><span style="color: #7400FF;">/&gt;</span></span>
&nbsp;
    <span style="color: #000000;"><span style="color: #7400FF;">&lt;/mx:Panel</span><span style="color: #7400FF;">&gt;</span></span>
<span style="color: #000000;"><span style="color: #7400FF;">&lt;/mx:Application</span><span style="color: #7400FF;">&gt;</span></span></pre></div></div>


	标签：<a href="http://blog.desizen.com/TAG/flex" title="FLEX" rel="tag">FLEX</a>, <a href="http://blog.desizen.com/TAG/text" title="Text" rel="tag">Text</a>, <a href="http://blog.desizen.com/TAG/textarea" title="TextArea" rel="tag">TextArea</a>, <a href="http://blog.desizen.com/TAG/textinput" title="TextInput" rel="tag">TextInput</a>, <a href="http://blog.desizen.com/TAG/tourdeflex" title="TourDeFlex" rel="tag">TourDeFlex</a>, <a href="http://blog.desizen.com/TAG/%e4%be%8b%e5%ad%90" title="例子" rel="tag">例子</a><br />

	<h4>相关日志</h4>
	<ul class="st-related-posts">
	<li><a href="http://blog.desizen.com/4lone/535.html" title="FLEX例子之高级数据表(AdvancedDataGrid) (2009年2月25日)">FLEX例子之高级数据表(AdvancedDataGrid)</a> (0)</li>
	<li><a href="http://blog.desizen.com/4lone/551.html" title="FLEX例子之颜色拾取器(ColorPicker) (2009年3月4日)">FLEX例子之颜色拾取器(ColorPicker)</a> (0)</li>
	<li><a href="http://blog.desizen.com/4lone/539.html" title="FLEX例子之OLAP数据表(OLAPDataGrid) (2009年2月25日)">FLEX例子之OLAP数据表(OLAPDataGrid)</a> (0)</li>
	<li><a href="http://blog.desizen.com/4lone/401.html" title="FLEX例子之弹出按钮(PopUpButton) (2009年1月14日)">FLEX例子之弹出按钮(PopUpButton)</a> (0)</li>
	<li><a href="http://blog.desizen.com/4lone/120.html" title="国外免费的CSS样式和模板下载 (2008年10月8日)">国外免费的CSS样式和模板下载</a> (13)</li>
	<li><a href="http://blog.desizen.com/4lone/431.html" title="在flex中应用css样式详解 (2009年2月5日)">在flex中应用css样式详解</a> (0)</li>
	<li><a href="http://blog.desizen.com/4lone/424.html" title="FLEX例子之链接切换条(LinkBar) (2009年2月5日)">FLEX例子之链接切换条(LinkBar)</a> (0)</li>
	<li><a href="http://blog.desizen.com/4lone/199.html" title="KingCMS之模块管理 (2008年10月27日)">KingCMS之模块管理</a> (0)</li>
	<li><a href="http://blog.desizen.com/4lone/568.html" title="FLEX例子之进程条(ProgressBar) (2009年3月6日)">FLEX例子之进程条(ProgressBar)</a> (0)</li>
	<li><a href="http://blog.desizen.com/4lone/48.html" title="flex 入门教程 (2008年8月18日)">flex 入门教程</a> (0)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://blog.desizen.com/4lone/307.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

