<?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; labelFunction</title>
	<atom:link href="http://blog.minidx.com/tag/labelfunction/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中如何通过将PopUpMenuButton作为一个XML数据提供源创建一个自定义的labelFunction的label的例子</title>
		<link>http://blog.minidx.com/2009/04/13/2366.html</link>
		<comments>http://blog.minidx.com/2009/04/13/2366.html#comments</comments>
		<pubDate>Mon, 13 Apr 2009 00:25:37 +0000</pubDate>
		<dc:creator>Minidxer</dc:creator>
				<category><![CDATA[Label]]></category>
		<category><![CDATA[dataProvider]]></category>
		<category><![CDATA[labelFunction]]></category>
		<category><![CDATA[PopUpMenuButton]]></category>
		<category><![CDATA[SortField]]></category>

		<guid isPermaLink="false">http://blog.minidx.com/?p=2366</guid>
		<description><![CDATA[接下来的例子演示了Flex中如何通过将PopUpMenuButton作为一个XML数据提供源，创建一个自定义的labelFunction的label。
让我们先来看一下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 getTeams(dp:XML, leagueAbbrev:String, divisionLabel:String):XMLList {
&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; return dp.league.(@abbrev == leagueAbbrev).division.(@label == divisionLabel).team;
&#160; &#160; &#160; &#160; &#160; &#160; }
&#160;
&#160; &#160; &#160; [...]]]></description>
		<wfw:commentRss>http://blog.minidx.com/2009/04/13/2366.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Flex中如何利用showLabelVertically属性控制ColumnChart上ColumnSeries标签为竖直或横向的例子</title>
		<link>http://blog.minidx.com/2009/03/06/2230.html</link>
		<comments>http://blog.minidx.com/2009/03/06/2230.html#comments</comments>
		<pubDate>Fri, 06 Mar 2009 00:28:52 +0000</pubDate>
		<dc:creator>Minidxer</dc:creator>
				<category><![CDATA[Chart]]></category>
		<category><![CDATA[ColumnChart]]></category>
		<category><![CDATA[labelFunction]]></category>
		<category><![CDATA[labelPosition]]></category>
		<category><![CDATA[showLabelVertically]]></category>

		<guid isPermaLink="false">http://blog.minidx.com/?p=2230</guid>
		<description><![CDATA[接下来的例子演示了Flex中如何利用showLabelVertically属性，控制ColumnChart上ColumnSeries标签为竖直或横向
让我们先来看一下Demo（可以右键View Source或点击这里察看源代码）：









下面是完整代码(或点击这里察看)：
Download: main.mxml&#60;?xml version=&#34;1.0&#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;middle&#34;
&#160; &#160; &#160; &#160; backgroundColor=&#34;white&#34;&#62;
&#160;
&#160; &#160; &#60;mx:Style&#62;
&#160; &#160; &#160; &#160; @font-face {
&#160; &#160; &#160; &#160; &#160; &#160; src: local(&#34;Arial&#34;);
&#160; &#160; &#160; &#160; &#160; &#160; fontFamily: ArialEmbedded;
&#160; &#160; &#160; &#160; }
&#160;
&#160; &#160; &#160; &#160; ColumnChart {
&#160; &#160; &#160; &#160; &#160; &#160; fontFamily: ArialEmbedded;
&#160; &#160; &#160; [...]]]></description>
		<wfw:commentRss>http://blog.minidx.com/2009/03/06/2230.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Flex中如何利用dataDescriptor和labelFunction属性以及hasChildren()和getChildren()函数设置Tree中包含子节点个数的例子</title>
		<link>http://blog.minidx.com/2009/02/17/2115.html</link>
		<comments>http://blog.minidx.com/2009/02/17/2115.html#comments</comments>
		<pubDate>Tue, 17 Feb 2009 13:24:58 +0000</pubDate>
		<dc:creator>Minidxer</dc:creator>
				<category><![CDATA[Tree]]></category>
		<category><![CDATA[dateDescriptor]]></category>
		<category><![CDATA[getChildren]]></category>
		<category><![CDATA[hasChildren()]]></category>
		<category><![CDATA[labelFunction]]></category>
		<category><![CDATA[Tree.]]></category>

		<guid isPermaLink="false">http://blog.minidx.com/?p=2115</guid>
		<description><![CDATA[接下来的例子演示了Flex中如何利用dataDescriptor和labelFunction属性，以及hasChildren()和getChildren()函数设置Tree中包含子节点个数。
让我们先来看一下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;middle&#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 tree_labelFunc(item:XML):String {
&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; var label:String = item.@label;
&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; if (tree.dataDescriptor.hasChildren(item)) {
&#160; &#160; &#160; [...]]]></description>
		<wfw:commentRss>http://blog.minidx.com/2009/02/17/2115.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Flex中如何通过labelFunction属性给ButtonBar设置一个函数用于创建自定义按钮标签的例子</title>
		<link>http://blog.minidx.com/2009/02/14/2100.html</link>
		<comments>http://blog.minidx.com/2009/02/14/2100.html#comments</comments>
		<pubDate>Sat, 14 Feb 2009 01:18:20 +0000</pubDate>
		<dc:creator>Minidxer</dc:creator>
				<category><![CDATA[ButtonBar]]></category>
		<category><![CDATA[describeType()]]></category>
		<category><![CDATA[labelFunction]]></category>

		<guid isPermaLink="false">http://blog.minidx.com/?p=2100</guid>
		<description><![CDATA[接下来的例子演示了Flex中如何通过labelFunction属性，给ButtonBar设置一个函数用于创建自定义按钮标签。
让我们先来看一下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;middle&#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; import mx.controls.ButtonBar;
&#160;
&#160; &#160; &#160; &#160; &#160; &#160; private var buttonBarXML:XML = describeType(ButtonBar);
&#160;
&#160; &#160; &#160; &#160; &#160; &#160; private function buttonBar_labelFunc(item:Object):String {
&#160; &#160; &#160; &#160; &#160; &#160; &#160; [...]]]></description>
		<wfw:commentRss>http://blog.minidx.com/2009/02/14/2100.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Flex中如何利用labelFunction属性以及自定义label函数格式化显示DateField控件内容的例子</title>
		<link>http://blog.minidx.com/2009/01/03/1869.html</link>
		<comments>http://blog.minidx.com/2009/01/03/1869.html#comments</comments>
		<pubDate>Sat, 03 Jan 2009 02:01:14 +0000</pubDate>
		<dc:creator>Minidxer</dc:creator>
				<category><![CDATA[DateField]]></category>
		<category><![CDATA[labelFunction]]></category>
		<category><![CDATA[toDateString()]]></category>

		<guid isPermaLink="false">http://blog.minidx.com/?p=1869</guid>
		<description><![CDATA[接下来的例子演示了Flex中如何利用labelFunction属性以及自定义label函数，格式化显示DateField控件内容。
让我们先来看一下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;middle&#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 dateField_labelFunc(item:Date):String {
&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; if (item == null) {
&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; return &#34;&#34;;
&#160; [...]]]></description>
		<wfw:commentRss>http://blog.minidx.com/2009/01/03/1869.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/31 queries in 0.474 seconds using disk
Object Caching 411/810 objects using disk

Served from: blog.minidx.com @ 2012-02-09 23:01:13 -->
