<?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>中文Flex例子 &#187; Text</title>
	<atom:link href="http://blog.minidx.com/tag/text/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.minidx.com</link>
	<description>中文Adobe Flex例子,Flex实例教程,RIA资源,全文检索技术,算法和数据结构</description>
	<lastBuildDate>Thu, 31 Mar 2011 03:22:33 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.5</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Flex Gumbo中如何通过lineBreak样式设置Spark TextArea自动换行的例子</title>
		<link>http://blog.minidx.com/2009/07/04/2687.html</link>
		<comments>http://blog.minidx.com/2009/07/04/2687.html#comments</comments>
		<pubDate>Sat, 04 Jul 2009 08:22:44 +0000</pubDate>
		<dc:creator>Minidxer</dc:creator>
				<category><![CDATA[FxTextArea]]></category>
		<category><![CDATA[Gumbo]]></category>
		<category><![CDATA[content]]></category>
		<category><![CDATA[lineBreak]]></category>
		<category><![CDATA[Text]]></category>
		<category><![CDATA[TextArea (Spark)]]></category>

		<guid isPermaLink="false">http://blog.minidx.com/?p=2687</guid>
		<description><![CDATA[接下来的例子演示了Flex Gumbo中如何通过在lineBreak样式中设置flashx.textLayout.formats.LineBreak类的静态constants，实现Spark TextArea自动换行。








下面是代码：
Download: main.mxml&#60;?xml version=&#34;1.0&#34; encoding=&#34;utf-8&#34;?&#62;
&#60;s:Application&#160;name=&#34;Spark_TextArea_lineBreak_test&#34;
&#160; &#160; &#160; &#160; xmlns:fx=&#34;http://ns.adobe.com/mxml/2009&#34;
&#160; &#160; &#160; &#160; xmlns:s=&#34;library://ns.adobe.com/flex/spark&#34;
&#160; &#160; &#160; &#160; xmlns:mx=&#34;library://ns.adobe.com/flex/halo&#34;&#62;
&#160;
&#160; &#160; &#60;mx:ApplicationControlBar&#160;cornerRadius=&#34;0&#34; width=&#34;100%&#34;&#62;
&#160; &#160; &#160; &#160; &#60;mx:Form&#160;styleName=&#34;plain&#34;&#62;
&#160; &#160; &#160; &#160; &#160; &#160; &#60;mx:FormItem&#160;label=&#34;lineBreak:&#34;&#62;
&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#60;s:DropDownList&#160;id=&#34;comboBox&#34; requiresSelection=&#34;true&#34;&#62;
&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#60;s:dataProvider&#62;
&#160; &#160; &#160; &#160; &#160; &#160; [...]]]></description>
		<wfw:commentRss>http://blog.minidx.com/2009/07/04/2687.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>如何利用HTMLComponent组件让你的Flex应用支持完美的HTML</title>
		<link>http://blog.minidx.com/2008/12/15/1721.html</link>
		<comments>http://blog.minidx.com/2008/12/15/1721.html#comments</comments>
		<pubDate>Sun, 14 Dec 2008 16:15:51 +0000</pubDate>
		<dc:creator>Minidxer</dc:creator>
				<category><![CDATA[Adobe其他]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[HTMLComponent]]></category>
		<category><![CDATA[htmlText]]></category>
		<category><![CDATA[Text]]></category>
		<category><![CDATA[TextArea]]></category>

		<guid isPermaLink="false">http://blog.minidx.com/?p=1721</guid>
		<description><![CDATA[一般Flex开发者都知道，Flex中的Text和TextArea虽然有htmlText这个属性可以用来解析HTML并且显示，不过它支持的实际上只是HTML的一个子集，很多HTML的标签都没办法解析。不过HTMLComponent这款组件，帮我们解决了这个问题，下面是一篇相关的说明，有兴趣的可以看看：








http://www.adobe.com/cfusion/communityengine/index.cfm?event=showdetails&#038;productId=2&#038;postId=12208
你可能还对下列文章感兴趣:Flex中如何利用htmlText和condenseWhite属性在RichTextEditor中紧缩HTML的空格的例子Flex的TextArea控件中如何利用htmlText属性以及condenseWhite属性紧缩HTML空格的例子25篇非常详细的关于如何从PSD转换为HTML&#38;CSS的教程Flex Gumbo中如何通过lineBreak样式设置Spark TextArea自动换行的例子Flex中如何在TextArea中使用Tab Stops的例子]]></description>
		<wfw:commentRss>http://blog.minidx.com/2008/12/15/1721.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>竖直方向居中对齐Flex的Text控件中文本</title>
		<link>http://blog.minidx.com/2008/08/06/1229.html</link>
		<comments>http://blog.minidx.com/2008/08/06/1229.html#comments</comments>
		<pubDate>Wed, 06 Aug 2008 07:22:19 +0000</pubDate>
		<dc:creator>Minidxer</dc:creator>
				<category><![CDATA[Adobe其他]]></category>
		<category><![CDATA[Spacer，]]></category>
		<category><![CDATA[Text]]></category>
		<category><![CDATA[VBox]]></category>

		<guid isPermaLink="false">http://blog.minidx.com/?p=1229</guid>
		<description><![CDATA[做法其实很简单，将Text装入VBox中，然后在Text周围封装两个Spacer，前后各一个，高度设置为100，搞定~下面是具体的代码：








Download: main.mxml&#60;?xml version=&#34;1.0&#34; encoding=&#34;utf-8&#34;?&#62;
&#60;mx:Application&#160;xmlns:mx=&#34;http://www.adobe.com/2006/mxml&#34; layout=&#34;vertical&#34;&#62;
&#160; &#160; &#60;mx:VBox&#160;verticalAlign=&#34;middle&#34; width=&#34;300&#34; height=&#34;400&#34; backgroundColor=&#34;0x000000&#34; borderStyle=&#34;solid&#34; borderColor=&#34;0x000000&#34; cornerRadius=&#34;6&#34;&#62;
&#160;
&#160;
&#160; &#160; &#160; &#160; &#60;mx:Spacer&#160;height=&#34;100%&#34;/&#62;
&#160; &#160; &#160; &#160; &#60;mx:Text&#160;text=&#34;Motorola's New Mobile Unit CEO Sanjay Jha: 'Too Little, Too Late?' - 12 hours ago
Now that Motorola ( NYSE: MOT) has chosen a CEO for its struggling handset unit, everyone wants to know can Sanjay [...]]]></description>
		<wfw:commentRss>http://blog.minidx.com/2008/08/06/1229.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Flex中如何通过leading样式在一个text控件中设置文本铅框(text leading)的例子</title>
		<link>http://blog.minidx.com/2008/06/05/883.html</link>
		<comments>http://blog.minidx.com/2008/06/05/883.html#comments</comments>
		<pubDate>Thu, 05 Jun 2008 13:08:05 +0000</pubDate>
		<dc:creator>Minidxer</dc:creator>
				<category><![CDATA[Flex]]></category>
		<category><![CDATA[leading]]></category>
		<category><![CDATA[Text]]></category>
		<category><![CDATA[文本铅框]]></category>

		<guid isPermaLink="false">http://blog.minidx.com/2008/06/05/883.html</guid>
		<description><![CDATA[text控件其实也是Flex中非常常用的一个控件，前面的例子中有用到过，不过并没有专门做过说明。接下来的例子演示了在Flex中，如何通过设置leading样式，在一个text控件中设置文本铅框(text leading，也就是竖直方向的行距)。 
让我们先来看一下Demo（可以右键View Source或点击这里察看源代码）：









下面是完整代码(或点击这里查看)：
Download: main.mxml&#60;?xml version=&#34;1.0&#34; encoding=&#34;utf-8&#34;?&#62;
&#60;mx:Application&#160;xmlns:mx=&#34;http://www.adobe.com/2006/mxml&#34;
&#160; &#160; &#160; &#160; layout=&#34;vertical&#34;
&#160; &#160; &#160; &#160; verticalAlign=&#34;top&#34;
&#160; &#160; &#160; &#160; backgroundColor=&#34;white&#34;&#62;
&#160;
&#160; &#160; &#60;mx:Script&#62;
&#160; &#160; &#160; &#160; &#60;![CDATA[
&#160; &#160; &#160; &#160; &#160; &#160; private function init():void {
&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; slider.value = txt.getStyle(&#34;leading&#34;);
&#160; &#160; &#160; &#160; &#160; &#160; }
&#160; &#160; &#160; &#160; ]]&#62;
&#160; &#160; [...]]]></description>
		<wfw:commentRss>http://blog.minidx.com/2008/06/05/883.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk
Page Caching using disk (enhanced)
Database Caching 2/35 queries in 0.110 seconds using disk
Object Caching 359/740 objects using disk

Served from: blog.minidx.com @ 2012-02-09 09:49:29 -->
