<?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; List</title>
	<atom:link href="http://blog.minidx.com/category/flex/list-flex/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 4中如何通过addChild()函数在list中显示一个Sprite的例子</title>
		<link>http://blog.minidx.com/2009/11/23/3058.html</link>
		<comments>http://blog.minidx.com/2009/11/23/3058.html#comments</comments>
		<pubDate>Mon, 23 Nov 2009 14:54:56 +0000</pubDate>
		<dc:creator>Minidxer</dc:creator>
				<category><![CDATA[List]]></category>
		<category><![CDATA[AddChild]]></category>
		<category><![CDATA[Gumbo]]></category>

		<guid isPermaLink="false">http://blog.minidx.com/?p=3058</guid>
		<description><![CDATA[接下来的例子演示了Flex 4中如何通过Spark SpriteVisualElement对象和addChild()函数，在list中显示一个Sprite。








下面是main.mxml：
&#60;?xml version=&#34;1.0&#34; encoding=&#34;utf-8&#34;?&#62;
&#60;s:Application&#160;name=&#34;Spark_SpriteVisualElement_addChild_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;
&#160; &#160; &#160; &#160; initialize=&#34;init();&#34;&#62;
&#160;
&#160; &#160; &#60;fx:Script&#62;
&#160; &#160; &#160; &#160; &#60;![CDATA[
&#160; &#160; &#160; &#160; &#160; &#160; private const spr1:Sprite = new Sprite();
&#160; &#160; &#160; &#160; &#160; &#160; private const spr2:Sprite = new Sprite();
&#160;
&#160; &#160; &#160; &#160; &#160; &#160; private [...]]]></description>
		<wfw:commentRss>http://blog.minidx.com/2009/11/23/3058.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Flex 4中如何通过textFieldClass样式给Halo／MX List设置CFF／DefineFont4字体的例子</title>
		<link>http://blog.minidx.com/2009/11/19/3056.html</link>
		<comments>http://blog.minidx.com/2009/11/19/3056.html#comments</comments>
		<pubDate>Thu, 19 Nov 2009 12:31:15 +0000</pubDate>
		<dc:creator>Minidxer</dc:creator>
				<category><![CDATA[Gumbo]]></category>
		<category><![CDATA[List]]></category>
		<category><![CDATA[textFieldClass]]></category>
		<category><![CDATA[UIFTETextField]]></category>

		<guid isPermaLink="false">http://blog.minidx.com/?p=3056</guid>
		<description><![CDATA[接下来的例子演示了Flex 4中如何通过textFieldClass样式设置mx.core.UIFTETextField类，给Halo／MX List设置CFF／DefineFont4字体。








下面是main.mxml：
&#60;?xml version=&#34;1.0&#34; encoding=&#34;utf-8&#34;?&#62;
&#60;!-- http://blog.flexexamples.com/2009/11/17/using-a-cff-embedded-font-with-a-halo-list-control-in-flex-4/ --&#62;
&#60;s:Application&#160;name=&#34;Halo_List_textFieldClass_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; &#60;s:controlBarContent&#62;
&#160; &#160; &#160; &#160; &#60;s:Label&#160;id=&#34;sdkVer&#34;
&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; fontFamily=&#34;df4ster&#34;
&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; fontSize=&#34;24&#34;
&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; initialize=&#34;sdkVer.text = mx_internal::VERSION;&#34;&#160;/&#62;
&#160; &#160; &#60;/s:controlBarContent&#62;
&#160;
&#160; &#160; &#60;fx:Style&#62;
&#160; [...]]]></description>
		<wfw:commentRss>http://blog.minidx.com/2009/11/19/3056.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Flex 4中如何在List内显示不同字体的例子</title>
		<link>http://blog.minidx.com/2009/11/16/3049.html</link>
		<comments>http://blog.minidx.com/2009/11/16/3049.html#comments</comments>
		<pubDate>Mon, 16 Nov 2009 12:54:21 +0000</pubDate>
		<dc:creator>Minidxer</dc:creator>
				<category><![CDATA[ComboBox]]></category>
		<category><![CDATA[Gumbo]]></category>
		<category><![CDATA[List]]></category>
		<category><![CDATA[fontName]]></category>
		<category><![CDATA[itemRenderer]]></category>

		<guid isPermaLink="false">http://blog.minidx.com/?p=3049</guid>
		<description><![CDATA[接下来的例子演示了Flex 4中如何通过自定义数据源，在ComboBox的下拉菜单List内显示不同字体。








下面是main.mxml：
&#60;?xml version=&#34;1.0&#34; encoding=&#34;utf-8&#34;?&#62;
&#60;s:Application&#160;xmlns:fx=&#34;http://ns.adobe.com/mxml/2009&#34;
&#160; &#160; &#160; &#160; &#160; &#160; &#160;&#160; xmlns:s=&#34;library://ns.adobe.com/flex/spark&#34;
&#160; &#160; &#160; &#160; &#160; &#160; &#160;&#160; xmlns:mx=&#34;library://ns.adobe.com/flex/halo&#34;
&#160; &#160; &#160; &#160; &#160; &#160; &#160;&#160; initialize=&#34;init();&#34;&#62;
&#160;
&#160; &#160; &#60;fx: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; var fontArr:Array = Font.enumerateFonts(true); /* device fonts only [...]]]></description>
		<wfw:commentRss>http://blog.minidx.com/2009/11/16/3049.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Flex 4中如何在Spark List中显示Icon图标的例子</title>
		<link>http://blog.minidx.com/2009/10/24/2988.html</link>
		<comments>http://blog.minidx.com/2009/10/24/2988.html#comments</comments>
		<pubDate>Sat, 24 Oct 2009 13:32:36 +0000</pubDate>
		<dc:creator>Minidxer</dc:creator>
				<category><![CDATA[Gumbo]]></category>
		<category><![CDATA[List]]></category>

		<guid isPermaLink="false">http://blog.minidx.com/?p=2988</guid>
		<description><![CDATA[接下来的例子演示了Flex 4中如何通过自定义数据提供源，在Spark List中显示Icon图标。 








下面是main.mxml：
&#60;?xml version=&#34;1.0&#34; encoding=&#34;utf-8&#34;?&#62;
&#60;s:Application&#160;name=&#34;Spark_List_itemRenderer_test&#34;
&#160; &#160; &#160; &#160; xmlns:fx=&#34;http://ns.adobe.com/mxml/2009&#34;
&#160; &#160; &#160; &#160; xmlns:mx=&#34;library://ns.adobe.com/flex/halo&#34;
&#160; &#160; &#160; &#160; xmlns:s=&#34;library://ns.adobe.com/flex/spark&#34;&#62;
&#160;
&#160; &#160; &#60;s:List&#160;id=&#34;list&#34;
&#160; &#160; &#160; &#160; &#160; &#160; labelField=&#34;label&#34;
&#160; &#160; &#160; &#160; &#160; &#160; itemRenderer=&#34;skins.CustomIconItemRenderer&#34;
&#160; &#160; &#160; &#160; &#160; &#160; horizontalCenter=&#34;0&#34;
&#160; &#160; &#160; &#160; &#160; &#160; verticalCenter=&#34;0&#34;&#62;
&#160; &#160; &#160; &#160; &#60;s:dataProvider&#62;
&#160; &#160; &#160; &#160; &#160; &#160; &#60;s:ArrayList&#62;
&#160; &#160; [...]]]></description>
		<wfw:commentRss>http://blog.minidx.com/2009/10/24/2988.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Flex 4中如何检测List上下滚动按钮被按下的例子</title>
		<link>http://blog.minidx.com/2009/09/19/2935.html</link>
		<comments>http://blog.minidx.com/2009/09/19/2935.html#comments</comments>
		<pubDate>Sat, 19 Sep 2009 12:13:20 +0000</pubDate>
		<dc:creator>Minidxer</dc:creator>
				<category><![CDATA[Gumbo]]></category>
		<category><![CDATA[List]]></category>
		<category><![CDATA[change]]></category>
		<category><![CDATA[scroller]]></category>
		<category><![CDATA[verticalScrollBar]]></category>

		<guid isPermaLink="false">http://blog.minidx.com/?p=2935</guid>
		<description><![CDATA[接下来的例子演示了Flex 4中如何通过监听VScrollBar上的change事件，检测List上下滚动按钮被按下。 
让我们先来看一下Demo（可以点击这里察看源代码）：









下面是完整代码(或点击这里察看)：
下面是main.mxml：
&#60;?xml version=&#34;1.0&#34; encoding=&#34;utf-8&#34;?&#62;
&#60;s:Application&#160;name=&#34;Spark_List_scroller_verticalScrollBar_change_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;fx:Script&#62;
&#160; &#160; &#160; &#160; &#60;![CDATA[
&#160; &#160; &#160; &#160; &#160; &#160; import spark.components.VScrollBar;
&#160;
&#160; &#160; &#160; &#160; &#160; &#160; private function init():void {
&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; list.scroller.verticalScrollBar.addEventListener(Event.CHANGE, list_verticalScrollBar_change);
&#160; &#160; &#160; &#160; &#160; &#160; }
&#160;
&#160; &#160; [...]]]></description>
		<wfw:commentRss>http://blog.minidx.com/2009/09/19/2935.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.148 seconds using disk
Object Caching 404/785 objects using disk

Served from: blog.minidx.com @ 2012-02-10 01:10:32 -->
