<?xml version="1.0" encoding="utf-8"?><?xml-stylesheet href='http://feed.minidx.com/styles/temp01.xsl' type='text/xsl' ?><!--这是一个由Feedsy提供技术支持的Feed，为了提高读者阅读的体验，以及满足用户美化自己Feed的需要，我们设计了多种精美的Feed模板，提供给大家选择，所有最终呈现出来的样式，皆由用户自愿选择使用，未经许可，任何团体和个人，请不要擅自修改样式或者盗用，这是对于用户选择权的尊重。--><rss xmlns:atom="http://www.w3.org/2005/Atom" xmlns:fs="http://www.feedsky.com/namespace/feed" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" version="2.0"><channel><atom:link href="http://feed.minidx.com" type="application/rss+xml" ref="self"></atom:link><fs:self_link href="http://feed.feedsky.com/minidx" type="application/rss+xml"></fs:self_link><lastBuildDate>Tue, 08 Jul 2008 12:02:57 GMT</lastBuildDate><title>全文检索博客</title><description>关注互联网动态，探索网络资源，引领全文检索技术</description><image><url>http://www.feedsky.com/feed/minidx/sc/gif</url><title>全文检索博客</title><link>http://blog.minidx.com</link></image><link>http://blog.minidx.com</link><atom:link href="http://blog.minidx.com/?feed=rss2" rel="self" type="application/rss+xml"></atom:link><language>en</language><pubDate>Tue, 08 Jul 2008 12:04:34 GMT</pubDate><dc:date>2008-07-08T12:04:34Z</dc:date><dc:language>en</dc:language><item><title>Flex中如何利用useRollOver样式固定ComboBox控件下拉菜单中项目高亮(hightlighting)的例子</title><link>http://item.feedsky.com/~feedsky/minidx/~6075588/91718814/4183404/1/item.html</link><content:encoded>&lt;p&gt;接下来的例子演示了Flex中如何利用useRollOver样式，固定ComboBox控件下拉菜单中项目高亮(hightlighting)。可以通过选中或者取消“useRollOver”选择框，拖动下拉菜单并且移动鼠标来体验区别。&lt;/p&gt;
&lt;p&gt;&lt;code&gt;让我们先来看一下Demo（&lt;/code&gt;可以右键View Source或&lt;a href=&quot;http://blog.minidx.com/ext02/toggling-item-roll-over-highlighting-on-a-combobox-control-in-flex/srcview/index.html&quot; target=&quot;_blank&quot;&gt;点击这里&lt;/a&gt;察看源代码&lt;code&gt;）：&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;!--more--&gt;&lt;/p&gt;
&lt;p&gt;&lt;iframe src=&quot;http://blog.minidx.com/ext02/toggling-item-roll-over-highlighting-on-a-combobox-control-in-flex/main.html&quot; width=&quot;480&quot; height=&quot;200&quot;&gt;&lt;/iframe&gt;
&lt;p&gt;下面是完整代码(或&lt;a href=&quot;http://blog.minidx.com/ext02/toggling-item-roll-over-highlighting-on-a-combobox-control-in-flex/srcview/index.html&quot; target=&quot;_blank&quot;&gt;点击这里&lt;/a&gt;察看)：&lt;/p&gt;
&lt;div class=&quot;hl-title&quot;&gt;Download: &lt;a href=&quot;http://blog.minidx.com/wp-content/plugins/coolcode/coolcode.php?p=1057&amp;amp;download=main.mxml&quot;&gt;main.mxml&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;hl-surround&quot;&gt;&lt;ol class=&quot;hl-main ln-show&quot; title=&quot;Double click to hide line number.&quot; ondblclick = &quot;linenumber(this)&quot;&gt;&lt;li class=&quot;hl-firstline&quot;&gt;&lt;span style=&quot;color: Olive;&quot;&gt;&amp;lt;?&lt;/span&gt;&lt;span style=&quot;color: Green;&quot;&gt;xml&lt;/span&gt;&lt;span style=&quot;color: Gray;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #00008b;&quot;&gt;version&lt;/span&gt;&lt;span style=&quot;color: Gray;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #8b0000;&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: Red;&quot;&gt;1.0&lt;/span&gt;&lt;span style=&quot;color: #8b0000;&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: Gray;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #00008b;&quot;&gt;encoding&lt;/span&gt;&lt;span style=&quot;color: Gray;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #8b0000;&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: Red;&quot;&gt;utf-8&lt;/span&gt;&lt;span style=&quot;color: #8b0000;&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: Olive;&quot;&gt;?&amp;gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;color: Olive;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: Green;&quot;&gt;mx:Application&lt;/span&gt;&lt;span style=&quot;color: Gray;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #00008b;&quot;&gt;xmlns:mx&lt;/span&gt;&lt;span style=&quot;color: Gray;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #8b0000;&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: Red;&quot;&gt;http://www.adobe.com/2006/mxml&lt;/span&gt;&lt;span style=&quot;color: #8b0000;&quot;&gt;&amp;quot;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;color: Gray;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #00008b;&quot;&gt;layout&lt;/span&gt;&lt;span style=&quot;color: Gray;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #8b0000;&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: Red;&quot;&gt;vertical&lt;/span&gt;&lt;span style=&quot;color: #8b0000;&quot;&gt;&amp;quot;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;color: Gray;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #00008b;&quot;&gt;verticalAlign&lt;/span&gt;&lt;span style=&quot;color: Gray;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #8b0000;&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: Red;&quot;&gt;top&lt;/span&gt;&lt;span style=&quot;color: #8b0000;&quot;&gt;&amp;quot;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;color: Gray;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #00008b;&quot;&gt;backgroundColor&lt;/span&gt;&lt;span style=&quot;color: Gray;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #8b0000;&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: Red;&quot;&gt;white&lt;/span&gt;&lt;span style=&quot;color: #8b0000;&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: Olive;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;color: Gray;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;color: Gray;&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: Olive;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: Green;&quot;&gt;mx:Script&lt;/span&gt;&lt;span style=&quot;color: Olive;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;color: Gray;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #ffa500;&quot;&gt;&amp;lt;![CDATA[&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;color: #ffa500;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; import mx.events.DropdownEvent;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;color: #ffa500;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;color: #ffa500;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; private function comboBox_open(evt:DropdownEvent):void {&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;color: #ffa500;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; comboBox.dropdown.setStyle(&amp;quot;useRollOver&amp;quot;, checkBox.selected);&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;color: #ffa500;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;color: #ffa500;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ]]&amp;gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;color: Gray;&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: Olive;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: Green;&quot;&gt;mx:Script&lt;/span&gt;&lt;span style=&quot;color: Olive;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;color: Gray;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;color: Gray;&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: Olive;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: Green;&quot;&gt;mx:Array&lt;/span&gt;&lt;span style=&quot;color: Gray;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #00008b;&quot;&gt;id&lt;/span&gt;&lt;span style=&quot;color: Gray;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #8b0000;&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: Red;&quot;&gt;arr&lt;/span&gt;&lt;span style=&quot;color: #8b0000;&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: Olive;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;color: Gray;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: Olive;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: Green;&quot;&gt;mx:Object&lt;/span&gt;&lt;span style=&quot;color: Gray;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #00008b;&quot;&gt;label&lt;/span&gt;&lt;span style=&quot;color: Gray;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #8b0000;&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: Red;&quot;&gt;One&lt;/span&gt;&lt;span style=&quot;color: #8b0000;&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: Gray;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: Olive;&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;color: Gray;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: Olive;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: Green;&quot;&gt;mx:Object&lt;/span&gt;&lt;span style=&quot;color: Gray;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #00008b;&quot;&gt;label&lt;/span&gt;&lt;span style=&quot;color: Gray;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #8b0000;&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: Red;&quot;&gt;Two&lt;/span&gt;&lt;span style=&quot;color: #8b0000;&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: Gray;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: Olive;&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;color: Gray;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: Olive;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: Green;&quot;&gt;mx:Object&lt;/span&gt;&lt;span style=&quot;color: Gray;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #00008b;&quot;&gt;label&lt;/span&gt;&lt;span style=&quot;color: Gray;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #8b0000;&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: Red;&quot;&gt;Three&lt;/span&gt;&lt;span style=&quot;color: #8b0000;&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: Gray;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: Olive;&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;color: Gray;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: Olive;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: Green;&quot;&gt;mx:Object&lt;/span&gt;&lt;span style=&quot;color: Gray;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #00008b;&quot;&gt;label&lt;/span&gt;&lt;span style=&quot;color: Gray;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #8b0000;&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: Red;&quot;&gt;Four&lt;/span&gt;&lt;span style=&quot;color: #8b0000;&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: Gray;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: Olive;&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;color: Gray;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: Olive;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: Green;&quot;&gt;mx:Object&lt;/span&gt;&lt;span style=&quot;color: Gray;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #00008b;&quot;&gt;label&lt;/span&gt;&lt;span style=&quot;color: Gray;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #8b0000;&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: Red;&quot;&gt;Five&lt;/span&gt;&lt;span style=&quot;color: #8b0000;&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: Gray;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: Olive;&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;color: Gray;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: Olive;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: Green;&quot;&gt;mx:Object&lt;/span&gt;&lt;span style=&quot;color: Gray;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #00008b;&quot;&gt;label&lt;/span&gt;&lt;span style=&quot;color: Gray;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #8b0000;&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: Red;&quot;&gt;Six&lt;/span&gt;&lt;span style=&quot;color: #8b0000;&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: Gray;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: Olive;&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;color: Gray;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: Olive;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: Green;&quot;&gt;mx:Object&lt;/span&gt;&lt;span style=&quot;color: Gray;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #00008b;&quot;&gt;label&lt;/span&gt;&lt;span style=&quot;color: Gray;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #8b0000;&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: Red;&quot;&gt;Seven&lt;/span&gt;&lt;span style=&quot;color: #8b0000;&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: Gray;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: Olive;&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;color: Gray;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: Olive;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: Green;&quot;&gt;mx:Object&lt;/span&gt;&lt;span style=&quot;color: Gray;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #00008b;&quot;&gt;label&lt;/span&gt;&lt;span style=&quot;color: Gray;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #8b0000;&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: Red;&quot;&gt;Eight&lt;/span&gt;&lt;span style=&quot;color: #8b0000;&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: Gray;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: Olive;&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;color: Gray;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: Olive;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: Green;&quot;&gt;mx:Object&lt;/span&gt;&lt;span style=&quot;color: Gray;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #00008b;&quot;&gt;label&lt;/span&gt;&lt;span style=&quot;color: Gray;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #8b0000;&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: Red;&quot;&gt;Nine&lt;/span&gt;&lt;span style=&quot;color: #8b0000;&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: Gray;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: Olive;&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;color: Gray;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: Olive;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: Green;&quot;&gt;mx:Object&lt;/span&gt;&lt;span style=&quot;color: Gray;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #00008b;&quot;&gt;label&lt;/span&gt;&lt;span style=&quot;color: Gray;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #8b0000;&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: Red;&quot;&gt;Ten&lt;/span&gt;&lt;span style=&quot;color: #8b0000;&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: Gray;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: Olive;&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;color: Gray;&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: Olive;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: Green;&quot;&gt;mx:Array&lt;/span&gt;&lt;span style=&quot;color: Olive;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;color: Gray;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;color: Gray;&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: Olive;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: Green;&quot;&gt;mx:ApplicationControlBar&lt;/span&gt;&lt;span style=&quot;color: Gray;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #00008b;&quot;&gt;dock&lt;/span&gt;&lt;span style=&quot;color: Gray;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #8b0000;&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: Red;&quot;&gt;true&lt;/span&gt;&lt;span style=&quot;color: #8b0000;&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: Olive;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;color: Gray;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: Olive;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: Green;&quot;&gt;mx:Form&lt;/span&gt;&lt;span style=&quot;color: Gray;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #00008b;&quot;&gt;styleName&lt;/span&gt;&lt;span style=&quot;color: Gray;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #8b0000;&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: Red;&quot;&gt;plain&lt;/span&gt;&lt;span style=&quot;color: #8b0000;&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: Olive;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;color: Gray;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: Olive;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: Green;&quot;&gt;mx:FormItem&lt;/span&gt;&lt;span style=&quot;color: Gray;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #00008b;&quot;&gt;label&lt;/span&gt;&lt;span style=&quot;color: Gray;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #8b0000;&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: Red;&quot;&gt;useRollOver:&lt;/span&gt;&lt;span style=&quot;color: #8b0000;&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: Olive;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;color: Gray;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: Olive;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: Green;&quot;&gt;mx:CheckBox&lt;/span&gt;&lt;span style=&quot;color: Gray;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #00008b;&quot;&gt;id&lt;/span&gt;&lt;span style=&quot;color: Gray;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #8b0000;&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: Red;&quot;&gt;checkBox&lt;/span&gt;&lt;span style=&quot;color: #8b0000;&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: Gray;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: Olive;&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;color: Gray;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: Olive;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: Green;&quot;&gt;mx:FormItem&lt;/span&gt;&lt;span style=&quot;color: Olive;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;color: Gray;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: Olive;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: Green;&quot;&gt;mx:Form&lt;/span&gt;&lt;span style=&quot;color: Olive;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;color: Gray;&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: Olive;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: Green;&quot;&gt;mx:ApplicationControlBar&lt;/span&gt;&lt;span style=&quot;color: Olive;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;color: Gray;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;color: Gray;&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: Olive;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: Green;&quot;&gt;mx:ComboBox&lt;/span&gt;&lt;span style=&quot;color: Gray;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #00008b;&quot;&gt;id&lt;/span&gt;&lt;span style=&quot;color: Gray;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #8b0000;&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: Red;&quot;&gt;comboBox&lt;/span&gt;&lt;span style=&quot;color: #8b0000;&quot;&gt;&amp;quot;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;color: Gray;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #00008b;&quot;&gt;dataProvider&lt;/span&gt;&lt;span style=&quot;color: Gray;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #8b0000;&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: Red;&quot;&gt;{arr}&lt;/span&gt;&lt;span style=&quot;color: #8b0000;&quot;&gt;&amp;quot;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;color: Gray;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #00008b;&quot;&gt;open&lt;/span&gt;&lt;span style=&quot;color: Gray;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #8b0000;&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: Red;&quot;&gt;comboBox_open(event);&lt;/span&gt;&lt;span style=&quot;color: #8b0000;&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: Gray;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: Olive;&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;color: Gray;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;color: Olive;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: Green;&quot;&gt;mx:Application&lt;/span&gt;&lt;span style=&quot;color: Olive;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/div&gt;
&lt;pre&gt;代码：&lt;a href=&quot;http://blog.flexexamples.com/2008/07/07/toggling-item-roll-over-highlighting-on-a-combobox-control-in-flex/&quot; target=&quot;_blank&quot;&gt;Peter deHaan&lt;/a&gt; 翻译/整理/编译：&lt;a href=&quot;http://blog.minidx.com&quot;&gt;minidxer&lt;/a&gt;&lt;/pre&gt;
&lt;div style=&quot;background:#EDEDED none repeat scroll 0%;border:1px solid #990033;height:40px;line-height:40px; auto;text-align:center;&quot;&gt;Permalink:&lt;a href=&quot;http://blog.minidx.com/2008/07/08/1057.html&quot;&gt;http://blog.minidx.com/2008/07/08/1057.html&lt;/a&gt;&lt;/div&gt;
&lt;p&gt;&lt;/p&gt;
&lt;h3&gt;Related Post&lt;/h3&gt;&lt;ul class=&quot;related_post&quot;&gt;&lt;li&gt;&lt;a href=&quot;http://blog.minidx.com/2008/07/07/1051.html&quot; title=&quot;Flex中如何利用fontFamily和dropdownStyleName样式在ComboBox控件中嵌入字体的例子&quot;&gt;Flex中如何利用fontFamily和dropdownStyleName样式在ComboBox控件中嵌入字体的例子&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;http://blog.minidx.com/2008/07/06/1039.html&quot; title=&quot;Flex中如何通过iconColor样式设置ComboBox控件下拉菜单图标(那两个上下三角图标)颜色的例子&quot;&gt;Flex中如何通过iconColor样式设置ComboBox控件下拉菜单图标(那两个上下三角图标)颜色的例子&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;http://blog.minidx.com/2008/07/05/1037.html&quot; title=&quot;Flex的ComboBox控件中如何利用variableRowHeight属性创建可变高度的行的例子&quot;&gt;Flex的ComboBox控件中如何利用variableRowHeight属性创建可变高度的行的例子&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;http://blog.minidx.com/2008/07/02/1026.html&quot; title=&quot;Flex中如何通过在ComboBox控件的dropdown属性中设置scrollTipFunction属性格式化滚动tips内容的例子&quot;&gt;Flex中如何通过在ComboBox控件的dropdown属性中设置scrollTipFunction属性格式化滚动tips内容的例子&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;http://blog.minidx.com/2008/07/02/1025.html&quot; title=&quot;Flex中如何通过在ComboBox控件的dropdown属性中设置showScrollTips属性使滚动tips随着下拉菜单滚动的例子&quot;&gt;Flex中如何通过在ComboBox控件的dropdown属性中设置showScrollTips属性使滚动tips随着下拉菜单滚动的例子&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;http://blog.minidx.com/2008/07/08/1056.html&quot; title=&quot;Flex中创建两个关联的ComboBox的例子&quot;&gt;Flex中创建两个关联的ComboBox的例子&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;http://blog.minidx.com/2008/07/04/1033.html&quot; title=&quot;Flex中如何通过iconColor样式设置ComboBox控件图标(那个下三角图标)颜色的例子&quot;&gt;Flex中如何通过iconColor样式设置ComboBox控件图标(那个下三角图标)颜色的例子&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;http://blog.minidx.com/2008/07/03/1032.html&quot; title=&quot;Flex中通过dropdownWidth属性设置下拉菜单(dropdown)宽度的例子&quot;&gt;Flex中通过dropdownWidth属性设置下拉菜单(dropdown)宽度的例子&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;http://blog.minidx.com/2008/06/19/911.html&quot; title=&quot;Flex中通过设置fillColors样式改变ComboBox控件的填充背景颜色的例子&quot;&gt;Flex中通过设置fillColors样式改变ComboBox控件的填充背景颜色的例子&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;http://blog.minidx.com/2008/06/17/906.html&quot; title=&quot;Flex中通过设置rowCount属性在ComboBox控件的下拉菜单中设置显示项目个数的例子&quot;&gt;Flex中通过设置rowCount属性在ComboBox控件的下拉菜单中设置显示项目个数的例子&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;http://blog.minidx.com/2008/06/10/903.html&quot; title=&quot;Flex中通过设定borderColor样式给ComboBox控件设置边框颜色的例子&quot;&gt;Flex中通过设定borderColor样式给ComboBox控件设置边框颜色的例子&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;http://blog.minidx.com/2008/06/05/886.html&quot; title=&quot;Flex中如何通过设置fontFamily样式在ComboBox控件中使用自定义嵌入字体的例子&quot;&gt;Flex中如何通过设置fontFamily样式在ComboBox控件中使用自定义嵌入字体的例子&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;http://blog.minidx.com/2008/06/05/885.html&quot; title=&quot;Flex中如何通过prompt属性在ComboBox控件中添加一个提示项(prompt)的例子&quot;&gt;Flex中如何通过prompt属性在ComboBox控件中添加一个提示项(prompt)的例子&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;&lt;!-- Feedsky ad --&gt;&lt;a href=&quot;http://feed.feedsky.com/~cpm/c/minidx/c5a1040588ce168f889cc4f52a2f6101&quot;&gt;&lt;img src=&quot;http://feed.feedsky.com/~cpm/minidx/c5a1040588ce168f889cc4f52a2f6101/s.gif&quot; border=&quot;0&quot; style=&quot;margin-top:5px;&quot; /&gt;&lt;/a&gt;&lt;!-- /Feedsky ad --&gt;&lt;br /&gt;&lt;!-- Feedsky flare --&gt;&lt;a href=&quot;http://feed.feedsky.com/~flare/minidx?a=bb3c61b5e00674ccd28a96a376b946ba&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;http://feed.feedsky.com/~flare/minidx?i=bb3c61b5e00674ccd28a96a376b946ba&quot; border=&quot;0&quot;&gt;&lt;/a&gt;&lt;a href=&quot;http://feed.feedsky.com/~flare/minidx?a=3ca917d9c713980551105f9cff83000d&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;http://feed.feedsky.com/~flare/minidx?i=3ca917d9c713980551105f9cff83000d&quot; border=&quot;0&quot;&gt;&lt;/a&gt;&lt;a href=&quot;http://feed.feedsky.com/~flare/minidx?a=b73420d0c8629f620292dd6209fdfaf0&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;http://feed.feedsky.com/~flare/minidx?i=b73420d0c8629f620292dd6209fdfaf0&quot; border=&quot;0&quot;&gt;&lt;/a&gt;&lt;a href=&quot;http://feed.feedsky.com/~flare/minidx?a=086434e4c366917a92947efc2153cd07&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;http://feed.feedsky.com/~flare/minidx?i=086434e4c366917a92947efc2153cd07&quot; border=&quot;0&quot;&gt;&lt;/a&gt;&lt;a href=&quot;http://feed.feedsky.com/~flare/minidx?a=422f0f14992cc3168b252788e91448ab&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;http://feed.feedsky.com/~flare/minidx?i=422f0f14992cc3168b252788e91448ab&quot; border=&quot;0&quot;&gt;&lt;/a&gt;&lt;a href=&quot;http://feed.feedsky.com/~flare/minidx?a=b5a69d45361ad618db6aea65fcbaeece&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;http://feed.feedsky.com/~flare/minidx?i=b5a69d45361ad618db6aea65fcbaeece&quot; border=&quot;0&quot;&gt;&lt;/a&gt;&lt;!-- /Feedsky flare --&gt;</content:encoded><wfw:commentRss>http://blog.minidx.com/2008/07/08/1057.html/feed</wfw:commentRss><description>接下来的例子演示了Flex中如何利用useRollOver样式，固定ComboBox控件下拉菜单中项目高亮(hightlighting)。可以通过选中或者取消“useRollOver”选择框，拖动下拉菜单并且移动鼠标来体验区别。
让我们先来看一下Demo（可以右键View Source或点击这里察看源代码）：


下面是完整代码(或点击这里察看)：
Download: main.mxml&amp;#60;?xml version=&amp;#34;1.0&amp;#34; encoding=&amp;#34;utf-8&amp;#34;?&amp;#62;
&amp;#60;mx:Application&amp;#160;xmlns:mx=&amp;#34;http://www.adobe.com/2006/mxml&amp;#34;
&amp;#160; &amp;#160; &amp;#160; &amp;#160; layout=&amp;#34;vertical&amp;#34;
&amp;#160; &amp;#160; &amp;#160; &amp;#160; verticalAlign=&amp;#34;top&amp;#34;
&amp;#160; &amp;#160; &amp;#160; &amp;#160; backgroundColor=&amp;#34;white&amp;#34;&amp;#62;
&amp;#160;
&amp;#160; &amp;#160; &amp;#60;mx:Script&amp;#62;
&amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#60;![CDATA[
&amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; import mx.events.DropdownEvent;
&amp;#160;
&amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; private function comboBox_open(evt:DropdownEvent):void {
&amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; comboBox.dropdown.setStyle(&amp;#34;useRollOver&amp;#34;, checkBox.selected);
&amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; }
&amp;#160; &amp;#160; [...]&lt;br /&gt;&lt;!-- Feedsky ad --&gt;&lt;a href=&quot;http://feed.feedsky.com/~cpm/c/minidx/c5a1040588ce168f889cc4f52a2f6101&quot;&gt;&lt;img src=&quot;http://feed.feedsky.com/~cpm/minidx/c5a1040588ce168f889cc4f52a2f6101/s.gif&quot; border=&quot;0&quot; style=&quot;margin-top:5px;&quot; /&gt;&lt;/a&gt;&lt;!-- /Feedsky ad --&gt;&lt;br /&gt;&lt;!-- Feedsky flare --&gt;&lt;a href=&quot;http://feed.feedsky.com/~flare/minidx?a=bb3c61b5e00674ccd28a96a376b946ba&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;http://feed.feedsky.com/~flare/minidx?i=bb3c61b5e00674ccd28a96a376b946ba&quot; border=&quot;0&quot;&gt;&lt;/a&gt;&lt;a href=&quot;http://feed.feedsky.com/~flare/minidx?a=3ca917d9c713980551105f9cff83000d&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;http://feed.feedsky.com/~flare/minidx?i=3ca917d9c713980551105f9cff83000d&quot; border=&quot;0&quot;&gt;&lt;/a&gt;&lt;a href=&quot;http://feed.feedsky.com/~flare/minidx?a=b73420d0c8629f620292dd6209fdfaf0&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;http://feed.feedsky.com/~flare/minidx?i=b73420d0c8629f620292dd6209fdfaf0&quot; border=&quot;0&quot;&gt;&lt;/a&gt;&lt;a href=&quot;http://feed.feedsky.com/~flare/minidx?a=086434e4c366917a92947efc2153cd07&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;http://feed.feedsky.com/~flare/minidx?i=086434e4c366917a92947efc2153cd07&quot; border=&quot;0&quot;&gt;&lt;/a&gt;&lt;a href=&quot;http://feed.feedsky.com/~flare/minidx?a=422f0f14992cc3168b252788e91448ab&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;http://feed.feedsky.com/~flare/minidx?i=422f0f14992cc3168b252788e91448ab&quot; border=&quot;0&quot;&gt;&lt;/a&gt;&lt;a href=&quot;http://feed.feedsky.com/~flare/minidx?a=b5a69d45361ad618db6aea65fcbaeece&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;http://feed.feedsky.com/~flare/minidx?i=b5a69d45361ad618db6aea65fcbaeece&quot; border=&quot;0&quot;&gt;&lt;/a&gt;&lt;!-- /Feedsky flare --&gt;</description><category>Flex</category><category>dropdown</category><category>ComboBox</category><category>useRollOver</category><category>dropdownStyleName</category><pubDate>Tue, 08 Jul 2008 20:02:57 +0800</pubDate><author>Minidxer</author><comments>http://blog.minidx.com/2008/07/08/1057.html#comments</comments><guid isPermaLink="false">http://blog.minidx.com/2008/07/08/1057.html</guid><dc:creator>Minidxer</dc:creator><fs:srclink>http://blog.minidx.com/2008/07/08/1057.html</fs:srclink><fs:srcfeed>http://blog.minidx.com/?feed=rss2</fs:srcfeed><fs:itemid>feedsky/minidx/~6075588/91718814/4183404</fs:itemid></item><item><title>Flex中创建两个关联的ComboBox的例子</title><link>http://item.feedsky.com/~feedsky/minidx/~6075588/91718815/4183404/1/item.html</link><content:encoded>&lt;p&gt;这实际上是一个具有共通性的问题：两个ComboBox，第二个显示的项目是基于第一个选择的值来决定的。具体到实例就像选定国家之后，每个州/省应该显示什么的问题。接下来的例子演示了Flex中如何创建两个关联的ComboBox。&lt;/p&gt;
&lt;p&gt;&lt;code&gt;让我们先来看一下Demo（&lt;/code&gt;可以右键View Source或&lt;a href=&quot;http://blog.minidx.com/ext02/creating-two-related-comboboxes/srcview/index.html&quot; target=&quot;_blank&quot;&gt;点击这里&lt;/a&gt;察看源代码&lt;code&gt;）：&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;!--more--&gt;&lt;/p&gt;
&lt;p&gt;&lt;iframe src=&quot;http://blog.minidx.com/ext02/creating-two-related-comboboxes/main.html&quot; width=&quot;480&quot; height=&quot;200&quot;&gt;&lt;/iframe&gt;
&lt;p&gt;下面是完整代码(或&lt;a href=&quot;http://blog.minidx.com/ext02/creating-two-related-comboboxes/srcview/index.html&quot; target=&quot;_blank&quot;&gt;点击这里&lt;/a&gt;察看)：&lt;/p&gt;
&lt;div class=&quot;hl-title&quot;&gt;Download: &lt;a href=&quot;http://blog.minidx.com/wp-content/plugins/coolcode/coolcode.php?p=1056&amp;amp;download=main.mxml&quot;&gt;main.mxml&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;hl-surround&quot;&gt;&lt;ol class=&quot;hl-main ln-show&quot; title=&quot;Double click to hide line number.&quot; ondblclick = &quot;linenumber(this)&quot;&gt;&lt;li class=&quot;hl-firstline&quot;&gt;&lt;span style=&quot;color: Olive;&quot;&gt;&amp;lt;?&lt;/span&gt;&lt;span style=&quot;color: Green;&quot;&gt;xml&lt;/span&gt;&lt;span style=&quot;color: Gray;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #00008b;&quot;&gt;version&lt;/span&gt;&lt;span style=&quot;color: Gray;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #8b0000;&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: Red;&quot;&gt;1.0&lt;/span&gt;&lt;span style=&quot;color: #8b0000;&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: Gray;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #00008b;&quot;&gt;encoding&lt;/span&gt;&lt;span style=&quot;color: Gray;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #8b0000;&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: Red;&quot;&gt;utf-8&lt;/span&gt;&lt;span style=&quot;color: #8b0000;&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: Olive;&quot;&gt;?&amp;gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;color: Olive;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: Green;&quot;&gt;mx:Application&lt;/span&gt;&lt;span style=&quot;color: Gray;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #00008b;&quot;&gt;xmlns:mx&lt;/span&gt;&lt;span style=&quot;color: Gray;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #8b0000;&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: Red;&quot;&gt;http://www.adobe.com/2006/mxml&lt;/span&gt;&lt;span style=&quot;color: #8b0000;&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: Gray;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #00008b;&quot;&gt;layout&lt;/span&gt;&lt;span style=&quot;color: Gray;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #8b0000;&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: Red;&quot;&gt;vertical&lt;/span&gt;&lt;span style=&quot;color: #8b0000;&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: Gray;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #00008b;&quot;&gt;verticalAlign&lt;/span&gt;&lt;span style=&quot;color: Gray;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #8b0000;&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: Red;&quot;&gt;middle&lt;/span&gt;&lt;span style=&quot;color: #8b0000;&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: Gray;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #00008b;&quot;&gt;backgroundColor&lt;/span&gt;&lt;span style=&quot;color: Gray;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #8b0000;&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: Red;&quot;&gt;white&lt;/span&gt;&lt;span style=&quot;color: #8b0000;&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: Olive;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;color: Gray;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;color: Gray;&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: Olive;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: Green;&quot;&gt;mx:XML&lt;/span&gt;&lt;span style=&quot;color: Gray;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #00008b;&quot;&gt;id&lt;/span&gt;&lt;span style=&quot;color: Gray;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #8b0000;&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: Red;&quot;&gt;dp&lt;/span&gt;&lt;span style=&quot;color: #8b0000;&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: Gray;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #00008b;&quot;&gt;source&lt;/span&gt;&lt;span style=&quot;color: Gray;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #8b0000;&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: Red;&quot;&gt;countries_states.xml&lt;/span&gt;&lt;span style=&quot;color: #8b0000;&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: Gray;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #00008b;&quot;&gt;format&lt;/span&gt;&lt;span style=&quot;color: Gray;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #8b0000;&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: Red;&quot;&gt;e4x&lt;/span&gt;&lt;span style=&quot;color: #8b0000;&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: Gray;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: Olive;&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;color: Gray;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;color: Gray;&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: Olive;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: Green;&quot;&gt;mx:Form&lt;/span&gt;&lt;span style=&quot;color: Olive;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;color: Gray;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: Olive;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: Green;&quot;&gt;mx:FormItem&lt;/span&gt;&lt;span style=&quot;color: Gray;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #00008b;&quot;&gt;label&lt;/span&gt;&lt;span style=&quot;color: Gray;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #8b0000;&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: Red;&quot;&gt;Country:&lt;/span&gt;&lt;span style=&quot;color: #8b0000;&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: Olive;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;color: Gray;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: Olive;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: Green;&quot;&gt;mx:ComboBox&lt;/span&gt;&lt;span style=&quot;color: Gray;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #00008b;&quot;&gt;id&lt;/span&gt;&lt;span style=&quot;color: Gray;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #8b0000;&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: Red;&quot;&gt;countryCB&lt;/span&gt;&lt;span style=&quot;color: #8b0000;&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: Gray;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #00008b;&quot;&gt;dataProvider&lt;/span&gt;&lt;span style=&quot;color: Gray;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #8b0000;&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: Red;&quot;&gt;{dp.country}&lt;/span&gt;&lt;span style=&quot;color: #8b0000;&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: Gray;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #00008b;&quot;&gt;labelField&lt;/span&gt;&lt;span style=&quot;color: Gray;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #8b0000;&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: Red;&quot;&gt;@name&lt;/span&gt;&lt;span style=&quot;color: #8b0000;&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: Gray;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: Olive;&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;color: Gray;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: Olive;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: Green;&quot;&gt;mx:FormItem&lt;/span&gt;&lt;span style=&quot;color: Olive;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;color: Gray;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: Olive;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: Green;&quot;&gt;mx:FormItem&lt;/span&gt;&lt;span style=&quot;color: Gray;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #00008b;&quot;&gt;label&lt;/span&gt;&lt;span style=&quot;color: Gray;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #8b0000;&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: Red;&quot;&gt;State:&lt;/span&gt;&lt;span style=&quot;color: #8b0000;&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: Olive;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;color: Gray;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: Olive;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: Green;&quot;&gt;mx:ComboBox&lt;/span&gt;&lt;span style=&quot;color: Gray;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #00008b;&quot;&gt;id&lt;/span&gt;&lt;span style=&quot;color: Gray;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #8b0000;&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: Red;&quot;&gt;stateCB&lt;/span&gt;&lt;span style=&quot;color: #8b0000;&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: Gray;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #00008b;&quot;&gt;dataProvider&lt;/span&gt;&lt;span style=&quot;color: Gray;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #8b0000;&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: Red;&quot;&gt;{countryCB.selectedItem.state}&lt;/span&gt;&lt;span style=&quot;color: #8b0000;&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: Gray;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: Olive;&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;color: Gray;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: Olive;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: Green;&quot;&gt;mx:FormItem&lt;/span&gt;&lt;span style=&quot;color: Olive;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;color: Gray;&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: Olive;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: Green;&quot;&gt;mx:Form&lt;/span&gt;&lt;span style=&quot;color: Olive;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;color: Gray;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;color: Olive;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: Green;&quot;&gt;mx:Application&lt;/span&gt;&lt;span style=&quot;color: Olive;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/div&gt;
&lt;pre&gt;代码：&lt;a href=&quot;http://blog.flexexamples.com/2007/08/04/creating-two-related-comboboxes/&quot; target=&quot;_blank&quot;&gt;Peter deHaan&lt;/a&gt; 翻译/整理/编译：&lt;a href=&quot;http://blog.minidx.com&quot;&gt;minidxer&lt;/a&gt;&lt;/pre&gt;
&lt;div style=&quot;background:#EDEDED none repeat scroll 0%;border:1px solid #990033;height:40px;line-height:40px; auto;text-align:center;&quot;&gt;Permalink:&lt;a href=&quot;http://blog.minidx.com/2008/07/08/1056.html&quot;&gt;http://blog.minidx.com/2008/07/08/1056.html&lt;/a&gt;&lt;/div&gt;
&lt;p&gt;&lt;/p&gt;
&lt;h3&gt;Related Post&lt;/h3&gt;&lt;ul class=&quot;related_post&quot;&gt;&lt;li&gt;&lt;a href=&quot;http://blog.minidx.com/2008/07/08/1057.html&quot; title=&quot;Flex中如何利用useRollOver样式固定ComboBox控件下拉菜单中项目高亮(hightlighting)的例子&quot;&gt;Flex中如何利用useRollOver样式固定ComboBox控件下拉菜单中项目高亮(hightlighting)的例子&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;http://blog.minidx.com/2008/07/07/1051.html&quot; title=&quot;Flex中如何利用fontFamily和dropdownStyleName样式在ComboBox控件中嵌入字体的例子&quot;&gt;Flex中如何利用fontFamily和dropdownStyleName样式在ComboBox控件中嵌入字体的例子&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;http://blog.minidx.com/2008/07/06/1039.html&quot; title=&quot;Flex中如何通过iconColor样式设置ComboBox控件下拉菜单图标(那两个上下三角图标)颜色的例子&quot;&gt;Flex中如何通过iconColor样式设置ComboBox控件下拉菜单图标(那两个上下三角图标)颜色的例子&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;http://blog.minidx.com/2008/07/05/1037.html&quot; title=&quot;Flex的ComboBox控件中如何利用variableRowHeight属性创建可变高度的行的例子&quot;&gt;Flex的ComboBox控件中如何利用variableRowHeight属性创建可变高度的行的例子&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;http://blog.minidx.com/2008/07/04/1033.html&quot; title=&quot;Flex中如何通过iconColor样式设置ComboBox控件图标(那个下三角图标)颜色的例子&quot;&gt;Flex中如何通过iconColor样式设置ComboBox控件图标(那个下三角图标)颜色的例子&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;http://blog.minidx.com/2008/07/03/1032.html&quot; title=&quot;Flex中通过dropdownWidth属性设置下拉菜单(dropdown)宽度的例子&quot;&gt;Flex中通过dropdownWidth属性设置下拉菜单(dropdown)宽度的例子&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;http://blog.minidx.com/2008/07/02/1026.html&quot; title=&quot;Flex中如何通过在ComboBox控件的dropdown属性中设置scrollTipFunction属性格式化滚动tips内容的例子&quot;&gt;Flex中如何通过在ComboBox控件的dropdown属性中设置scrollTipFunction属性格式化滚动tips内容的例子&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;http://blog.minidx.com/2008/07/02/1025.html&quot; title=&quot;Flex中如何通过在ComboBox控件的dropdown属性中设置showScrollTips属性使滚动tips随着下拉菜单滚动的例子&quot;&gt;Flex中如何通过在ComboBox控件的dropdown属性中设置showScrollTips属性使滚动tips随着下拉菜单滚动的例子&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;http://blog.minidx.com/2008/06/19/911.html&quot; title=&quot;Flex中通过设置fillColors样式改变ComboBox控件的填充背景颜色的例子&quot;&gt;Flex中通过设置fillColors样式改变ComboBox控件的填充背景颜色的例子&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;http://blog.minidx.com/2008/06/17/906.html&quot; title=&quot;Flex中通过设置rowCount属性在ComboBox控件的下拉菜单中设置显示项目个数的例子&quot;&gt;Flex中通过设置rowCount属性在ComboBox控件的下拉菜单中设置显示项目个数的例子&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;http://blog.minidx.com/2008/06/10/903.html&quot; title=&quot;Flex中通过设定borderColor样式给ComboBox控件设置边框颜色的例子&quot;&gt;Flex中通过设定borderColor样式给ComboBox控件设置边框颜色的例子&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;http://blog.minidx.com/2008/06/05/886.html&quot; title=&quot;Flex中如何通过设置fontFamily样式在ComboBox控件中使用自定义嵌入字体的例子&quot;&gt;Flex中如何通过设置fontFamily样式在ComboBox控件中使用自定义嵌入字体的例子&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;http://blog.minidx.com/2008/06/05/885.html&quot; title=&quot;Flex中如何通过prompt属性在ComboBox控件中添加一个提示项(prompt)的例子&quot;&gt;Flex中如何通过prompt属性在ComboBox控件中添加一个提示项(prompt)的例子&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;http://blog.minidx.com/2008/05/24/868.html&quot; title=&quot;Ruboss Framework:将Adobe Flex和AIR应用简单高效的与Ruby On Rails集成的开发框架&quot;&gt;Ruboss Framework:将Adobe Flex和AIR应用简单高效的与Ruby On Rails集成的开发框架&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;http://blog.minidx.com/2008/04/25/772.html&quot; title=&quot;Flex中利用mx:HTTPService标签在run-time时导入XML文件的例子&quot;&gt;Flex中利用mx:HTTPService标签在run-time时导入XML文件的例子&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;http://blog.minidx.com/2008/04/22/760.html&quot; title=&quot;Flex中如何将XML数据显示在DataGrid控件中的例子&quot;&gt;Flex中如何将XML数据显示在DataGrid控件中的例子&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;http://blog.minidx.com/2008/03/31/667.html&quot; title=&quot;Flex中利用HTTPService标签动态导入XML文件的例子&quot;&gt;Flex中利用HTTPService标签动态导入XML文件的例子&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;http://blog.minidx.com/2008/03/12/565.html&quot; title=&quot;Flex中利用SimpleXMLEncoder将对象(objects)转化为XML的例子&quot;&gt;Flex中利用SimpleXMLEncoder将对象(objects)转化为XML的例子&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;http://blog.minidx.com/2008/03/06/541.html&quot; title=&quot;Flex中利用SimpleXMLDecoder类将XML转化为对象(objects)&quot;&gt;Flex中利用SimpleXMLDecoder类将XML转化为对象(objects)&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;http://blog.minidx.com/2008/03/05/540.html&quot; title=&quot;Flex中利用HTTPService MXML标签(tag)将XML转化为对象(objects)&quot;&gt;Flex中利用HTTPService MXML标签(tag)将XML转化为对象(objects)&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;&lt;!-- Feedsky ad --&gt;&lt;a href=&quot;http://feed.feedsky.com/~cpm/c/minidx/6be0f39a5b03f798bcff2a093e0457e6&quot;&gt;&lt;img src=&quot;http://feed.feedsky.com/~cpm/minidx/6be0f39a5b03f798bcff2a093e0457e6/s.gif&quot; border=&quot;0&quot; style=&quot;margin-top:5px;&quot; /&gt;&lt;/a&gt;&lt;!-- /Feedsky ad --&gt;&lt;br /&gt;&lt;!-- Feedsky flare --&gt;&lt;a href=&quot;http://feed.feedsky.com/~flare/minidx?a=0f8dcc26175b3ce247cc5365a2fb2d2e&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;http://feed.feedsky.com/~flare/minidx?i=0f8dcc26175b3ce247cc5365a2fb2d2e&quot; border=&quot;0&quot;&gt;&lt;/a&gt;&lt;a href=&quot;http://feed.feedsky.com/~flare/minidx?a=59064f314eea322a47be39c6f55a7bd5&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;http://feed.feedsky.com/~flare/minidx?i=59064f314eea322a47be39c6f55a7bd5&quot; border=&quot;0&quot;&gt;&lt;/a&gt;&lt;a href=&quot;http://feed.feedsky.com/~flare/minidx?a=7af00a64dd650757c2b22eaa4330b052&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;http://feed.feedsky.com/~flare/minidx?i=7af00a64dd650757c2b22eaa4330b052&quot; border=&quot;0&quot;&gt;&lt;/a&gt;&lt;a href=&quot;http://feed.feedsky.com/~flare/minidx?a=1b9254a871137766ba6a1e41322bfcf8&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;http://feed.feedsky.com/~flare/minidx?i=1b9254a871137766ba6a1e41322bfcf8&quot; border=&quot;0&quot;&gt;&lt;/a&gt;&lt;a href=&quot;http://feed.feedsky.com/~flare/minidx?a=bcccceec34ffe065367baaff1b50bd0b&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;http://feed.feedsky.com/~flare/minidx?i=bcccceec34ffe065367baaff1b50bd0b&quot; border=&quot;0&quot;&gt;&lt;/a&gt;&lt;a href=&quot;http://feed.feedsky.com/~flare/minidx?a=5983d924b6388051263e28fc17f34cd8&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;http://feed.feedsky.com/~flare/minidx?i=5983d924b6388051263e28fc17f34cd8&quot; border=&quot;0&quot;&gt;&lt;/a&gt;&lt;!-- /Feedsky flare --&gt;</content:encoded><wfw:commentRss>http://blog.minidx.com/2008/07/08/1056.html/feed</wfw:commentRss><description>这实际上是一个具有共通性的问题：两个ComboBox，第二个显示的项目是基于第一个选择的值来决定的。具体到实例就像选定国家之后，每个州/省应该显示什么的问题。接下来的例子演示了Flex中如何创建两个关联的ComboBox。
让我们先来看一下Demo（可以右键View Source或点击这里察看源代码）：


下面是完整代码(或点击这里察看)：
Download: main.mxml&amp;#60;?xml version=&amp;#34;1.0&amp;#34; encoding=&amp;#34;utf-8&amp;#34;?&amp;#62;
&amp;#60;mx:Application&amp;#160;xmlns:mx=&amp;#34;http://www.adobe.com/2006/mxml&amp;#34; layout=&amp;#34;vertical&amp;#34; verticalAlign=&amp;#34;middle&amp;#34; backgroundColor=&amp;#34;white&amp;#34;&amp;#62;
&amp;#160;
&amp;#160; &amp;#160; &amp;#60;mx:XML&amp;#160;id=&amp;#34;dp&amp;#34; source=&amp;#34;countries_states.xml&amp;#34; format=&amp;#34;e4x&amp;#34; /&amp;#62;
&amp;#160;
&amp;#160; &amp;#160; &amp;#60;mx:Form&amp;#62;
&amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#60;mx:FormItem&amp;#160;label=&amp;#34;Country:&amp;#34;&amp;#62;
&amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#60;mx:ComboBox&amp;#160;id=&amp;#34;countryCB&amp;#34; dataProvider=&amp;#34;{dp.country}&amp;#34; labelField=&amp;#34;@name&amp;#34; /&amp;#62;
&amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#60;/mx:FormItem&amp;#62;
&amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#60;mx:FormItem&amp;#160;label=&amp;#34;State:&amp;#34;&amp;#62;
&amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#60;mx:ComboBox&amp;#160;id=&amp;#34;stateCB&amp;#34; dataProvider=&amp;#34;{countryCB.selectedItem.state}&amp;#34; /&amp;#62;
&amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#60;/mx:FormItem&amp;#62;
&amp;#160; &amp;#160; &amp;#60;/mx:Form&amp;#62;
&amp;#160;
&amp;#60;/mx:Application&amp;#62;
代码：Peter deHaan 翻译/整理/编译：minidxer
Permalink:http://blog.minidx.com/2008/07/08/1056.html

Related PostFlex中如何利用useRollOver样式固定ComboBox控件下拉菜单中项目高亮(hightlighting)的例子Flex中如何利用fontFamily和dropdownStyleName样式在ComboBox控件中嵌入字体的例子Flex中如何通过iconColor样式设置ComboBox控件下拉菜单图标(那两个上下三角图标)颜色的例子Flex的ComboBox控件中如何利用variableRowHeight属性创建可变高度的行的例子Flex中如何通过iconColor样式设置ComboBox控件图标(那个下三角图标)颜色的例子Flex中通过dropdownWidth属性设置下拉菜单(dropdown)宽度的例子Flex中如何通过在ComboBox控件的dropdown属性中设置scrollTipFunction属性格式化滚动tips内容的例子Flex中如何通过在ComboBox控件的dropdown属性中设置showScrollTips属性使滚动tips随着下拉菜单滚动的例子Flex中通过设置fillColors样式改变ComboBox控件的填充背景颜色的例子Flex中通过设置rowCount属性在ComboBox控件的下拉菜单中设置显示项目个数的例子Flex中通过设定borderColor样式给ComboBox控件设置边框颜色的例子Flex中如何通过设置fontFamily样式在ComboBox控件中使用自定义嵌入字体的例子Flex中如何通过prompt属性在ComboBox控件中添加一个提示项(prompt)的例子Ruboss Framework:将Adobe Flex和AIR应用简单高效的与Ruby [...]&lt;br /&gt;&lt;!-- Feedsky ad --&gt;&lt;a href=&quot;http://feed.feedsky.com/~cpm/c/minidx/6be0f39a5b03f798bcff2a093e0457e6&quot;&gt;&lt;img src=&quot;http://feed.feedsky.com/~cpm/minidx/6be0f39a5b03f798bcff2a093e0457e6/s.gif&quot; border=&quot;0&quot; style=&quot;margin-top:5px;&quot; /&gt;&lt;/a&gt;&lt;!-- /Feedsky ad --&gt;&lt;br /&gt;&lt;!-- Feedsky flare --&gt;&lt;a href=&quot;http://feed.feedsky.com/~flare/minidx?a=0f8dcc26175b3ce247cc5365a2fb2d2e&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;http://feed.feedsky.com/~flare/minidx?i=0f8dcc26175b3ce247cc5365a2fb2d2e&quot; border=&quot;0&quot;&gt;&lt;/a&gt;&lt;a href=&quot;http://feed.feedsky.com/~flare/minidx?a=59064f314eea322a47be39c6f55a7bd5&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;http://feed.feedsky.com/~flare/minidx?i=59064f314eea322a47be39c6f55a7bd5&quot; border=&quot;0&quot;&gt;&lt;/a&gt;&lt;a href=&quot;http://feed.feedsky.com/~flare/minidx?a=7af00a64dd650757c2b22eaa4330b052&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;http://feed.feedsky.com/~flare/minidx?i=7af00a64dd650757c2b22eaa4330b052&quot; border=&quot;0&quot;&gt;&lt;/a&gt;&lt;a href=&quot;http://feed.feedsky.com/~flare/minidx?a=1b9254a871137766ba6a1e41322bfcf8&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;http://feed.feedsky.com/~flare/minidx?i=1b9254a871137766ba6a1e41322bfcf8&quot; border=&quot;0&quot;&gt;&lt;/a&gt;&lt;a href=&quot;http://feed.feedsky.com/~flare/minidx?a=bcccceec34ffe065367baaff1b50bd0b&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;http://feed.feedsky.com/~flare/minidx?i=bcccceec34ffe065367baaff1b50bd0b&quot; border=&quot;0&quot;&gt;&lt;/a&gt;&lt;a href=&quot;http://feed.feedsky.com/~flare/minidx?a=5983d924b6388051263e28fc17f34cd8&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;http://feed.feedsky.com/~flare/minidx?i=5983d924b6388051263e28fc17f34cd8&quot; border=&quot;0&quot;&gt;&lt;/a&gt;&lt;!-- /Feedsky flare --&gt;</description><category>Flex</category><category>ComboBox</category><category>XML</category><pubDate>Tue, 08 Jul 2008 07:37:45 +0800</pubDate><author>Minidxer</author><comments>http://blog.minidx.com/2008/07/08/1056.html#comments</comments><guid isPermaLink="false">http://blog.minidx.com/2008/07/08/1056.html</guid><dc:creator>Minidxer</dc:creator><fs:srclink>http://blog.minidx.com/2008/07/08/1056.html</fs:srclink><fs:srcfeed>http://blog.minidx.com/?feed=rss2</fs:srcfeed><fs:itemid>feedsky/minidx/~6075588/91718815/4183404</fs:itemid></item><item><title>Mate–一款基于Tag事件驱动的Flex开发框架</title><link>http://item.feedsky.com/~feedsky/minidx/~6075588/91718816/4183404/1/item.html</link><content:encoded>&lt;p&gt;Flex应用是基于事件驱动的，而Mate框架使其变得更加得简单，Mate允许用户定义是谁正在管理/处理这一事件，以及数据是否需要从服务器端返回，或者其他的什么事件需要被触发，所有的这些都使得Flex应用的开发变得更加得简单，Mate的“老家”可以找到很多相关的文档以及做好的Sample，有兴趣的可以去看看：&lt;/p&gt;
&lt;p&gt;&lt;!--more--&gt;&lt;/p&gt;
&lt;p&gt;&lt;a title=&quot;http://mate.asfusion.com/&quot; href=&quot;http://mate.asfusion.com/&quot;&gt;http://mate.asfusion.com/&lt;/a&gt;&lt;/p&gt;
&lt;div style=&quot;background:#EDEDED none repeat scroll 0%;border:1px solid #990033;height:40px;line-height:40px; auto;text-align:center;&quot;&gt;Permalink:&lt;a href=&quot;http://blog.minidx.com/2008/07/07/1055.html&quot;&gt;http://blog.minidx.com/2008/07/07/1055.html&lt;/a&gt;&lt;/div&gt;
&lt;p&gt;&lt;/p&gt;
&lt;h3&gt;Related Post&lt;/h3&gt;&lt;ul class=&quot;related_post&quot;&gt;&lt;li&gt;&lt;a href=&quot;http://blog.minidx.com/2007/10/31/39.html&quot; title=&quot;网络爬虫如何抓取web2.0 Ajax页面&quot;&gt;网络爬虫如何抓取web2.0 Ajax页面&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;http://blog.minidx.com/2007/10/27/23.html&quot; title=&quot;强悍的WordPress Tag,强悍的Google&quot;&gt;强悍的WordPress Tag,强悍的Google&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;&lt;!-- Feedsky ad --&gt;&lt;a href=&quot;http://feed.feedsky.com/~cpm/c/minidx/c65e6c8cd6c424ac85c6fdd0c43ae362&quot;&gt;&lt;img src=&quot;http://feed.feedsky.com/~cpm/minidx/c65e6c8cd6c424ac85c6fdd0c43ae362/s.gif&quot; border=&quot;0&quot; style=&quot;margin-top:5px;&quot; /&gt;&lt;/a&gt;&lt;!-- /Feedsky ad --&gt;&lt;br /&gt;&lt;!-- Feedsky flare --&gt;&lt;a href=&quot;http://feed.feedsky.com/~flare/minidx?a=675ce35a5dcdb5f1bffcbf07b54d7d75&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;http://feed.feedsky.com/~flare/minidx?i=675ce35a5dcdb5f1bffcbf07b54d7d75&quot; border=&quot;0&quot;&gt;&lt;/a&gt;&lt;a href=&quot;http://feed.feedsky.com/~flare/minidx?a=38076831059dba5114d7e4682ea459b2&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;http://feed.feedsky.com/~flare/minidx?i=38076831059dba5114d7e4682ea459b2&quot; border=&quot;0&quot;&gt;&lt;/a&gt;&lt;a href=&quot;http://feed.feedsky.com/~flare/minidx?a=312a801b1d6908fa8b23e6bcd0557ef0&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;http://feed.feedsky.com/~flare/minidx?i=312a801b1d6908fa8b23e6bcd0557ef0&quot; border=&quot;0&quot;&gt;&lt;/a&gt;&lt;a href=&quot;http://feed.feedsky.com/~flare/minidx?a=65bdef8db22f54d7bce405a607fb94c5&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;http://feed.feedsky.com/~flare/minidx?i=65bdef8db22f54d7bce405a607fb94c5&quot; border=&quot;0&quot;&gt;&lt;/a&gt;&lt;a href=&quot;http://feed.feedsky.com/~flare/minidx?a=6284dda27ce1d2bb1851eb8ad7cf845e&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;http://feed.feedsky.com/~flare/minidx?i=6284dda27ce1d2bb1851eb8ad7cf845e&quot; border=&quot;0&quot;&gt;&lt;/a&gt;&lt;a href=&quot;http://feed.feedsky.com/~flare/minidx?a=c38bfc1aa1cac4e97632bc31abf4ce1d&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;http://feed.feedsky.com/~flare/minidx?i=c38bfc1aa1cac4e97632bc31abf4ce1d&quot; border=&quot;0&quot;&gt;&lt;/a&gt;&lt;!-- /Feedsky flare --&gt;</content:encoded><wfw:commentRss>http://blog.minidx.com/2008/07/07/1055.html/feed</wfw:commentRss><description>Flex应用是基于事件驱动的，而Mate框架使其变得更加得简单，Mate允许用户定义是谁正在管理/处理这一事件，以及数据是否需要从服务器端返回，或者其他的什么事件需要被触发，所有的这些都使得Flex应用的开发变得更加得简单，Mate的“老家”可以找到很多相关的文档以及做好的Sample，有兴趣的可以去看看：

http://mate.asfusion.com/
Permalink:http://blog.minidx.com/2008/07/07/1055.html

Related Post网络爬虫如何抓取web2.0 Ajax页面强悍的WordPress Tag,强悍的Google&lt;br /&gt;&lt;!-- Feedsky ad --&gt;&lt;a href=&quot;http://feed.feedsky.com/~cpm/c/minidx/c65e6c8cd6c424ac85c6fdd0c43ae362&quot;&gt;&lt;img src=&quot;http://feed.feedsky.com/~cpm/minidx/c65e6c8cd6c424ac85c6fdd0c43ae362/s.gif&quot; border=&quot;0&quot; style=&quot;margin-top:5px;&quot; /&gt;&lt;/a&gt;&lt;!-- /Feedsky ad --&gt;&lt;br /&gt;&lt;!-- Feedsky flare --&gt;&lt;a href=&quot;http://feed.feedsky.com/~flare/minidx?a=675ce35a5dcdb5f1bffcbf07b54d7d75&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;http://feed.feedsky.com/~flare/minidx?i=675ce35a5dcdb5f1bffcbf07b54d7d75&quot; border=&quot;0&quot;&gt;&lt;/a&gt;&lt;a href=&quot;http://feed.feedsky.com/~flare/minidx?a=38076831059dba5114d7e4682ea459b2&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;http://feed.feedsky.com/~flare/minidx?i=38076831059dba5114d7e4682ea459b2&quot; border=&quot;0&quot;&gt;&lt;/a&gt;&lt;a href=&quot;http://feed.feedsky.com/~flare/minidx?a=312a801b1d6908fa8b23e6bcd0557ef0&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;http://feed.feedsky.com/~flare/minidx?i=312a801b1d6908fa8b23e6bcd0557ef0&quot; border=&quot;0&quot;&gt;&lt;/a&gt;&lt;a href=&quot;http://feed.feedsky.com/~flare/minidx?a=65bdef8db22f54d7bce405a607fb94c5&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;http://feed.feedsky.com/~flare/minidx?i=65bdef8db22f54d7bce405a607fb94c5&quot; border=&quot;0&quot;&gt;&lt;/a&gt;&lt;a href=&quot;http://feed.feedsky.com/~flare/minidx?a=6284dda27ce1d2bb1851eb8ad7cf845e&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;http://feed.feedsky.com/~flare/minidx?i=6284dda27ce1d2bb1851eb8ad7cf845e&quot; border=&quot;0&quot;&gt;&lt;/a&gt;&lt;a href=&quot;http://feed.feedsky.com/~flare/minidx?a=c38bfc1aa1cac4e97632bc31abf4ce1d&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;http://feed.feedsky.com/~flare/minidx?i=c38bfc1aa1cac4e97632bc31abf4ce1d&quot; border=&quot;0&quot;&gt;&lt;/a&gt;&lt;!-- /Feedsky flare --&gt;</description><category>事件驱动</category><category>Mate</category><category>Adobe其他</category><category>Tag</category><category>开发框架</category><pubDate>Mon, 07 Jul 2008 22:49:23 +0800</pubDate><author>Minidxer</author><comments>http://blog.minidx.com/2008/07/07/1055.html#comments</comments><guid isPermaLink="false">http://blog.minidx.com/2008/07/07/1055.html</guid><dc:creator>Minidxer</dc:creator><fs:srclink>http://blog.minidx.com/2008/07/07/1055.html</fs:srclink><fs:srcfeed>http://blog.minidx.com/?feed=rss2</fs:srcfeed><fs:itemid>feedsky/minidx/~6075588/91718816/4183404</fs:itemid></item><item><title>Jam-Packed–一款非常经典的Flex Style Explorer</title><link>http://item.feedsky.com/~feedsky/minidx/~6075588/91718817/4183404/1/item.html</link><content:encoded>&lt;p&gt;Jam-Packed是Peter Baird 2007年发布在macromedia.com上的一款Flex Style Explorer，1年的时间很快，上面很多的当时的新特性如今看来也许已经成了理所当然的了，不过不管怎么说，细细看来，Jam-Packed各种风格上依然很具有魅力，不愧是一款经典之作，有兴趣的可以直接去看看：&lt;/p&gt;
&lt;p&gt;&lt;!--more--&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://blog.minidx.com/wp-content/uploads/2008/07/preview.jpg&quot;&gt;&lt;img style=&quot;border-right: 0px; border-top: 0px; border-left: 0px; border-bottom: 0px&quot; height=&quot;283&quot; alt=&quot;preview&quot; src=&quot;http://blog.minidx.com/wp-content/uploads/2008/07/preview-thumb.jpg&quot; width=&quot;493&quot; border=&quot;0&quot;&gt;&lt;/a&gt; &lt;/p&gt;
&lt;p&gt;&lt;a title=&quot;http://weblogs.macromedia.com/mc/archives/2007/02/new_flex_style.html&quot; href=&quot;http://weblogs.macromedia.com/mc/archives/2007/02/new_flex_style.html&quot;&gt;http://weblogs.macromedia.com/mc/archives/2007/02/new_flex_style.html&lt;/a&gt;&lt;/p&gt;
&lt;div style=&quot;background:#EDEDED none repeat scroll 0%;border:1px solid #990033;height:40px;line-height:40px; auto;text-align:center;&quot;&gt;Permalink:&lt;a href=&quot;http://blog.minidx.com/2008/07/07/1054.html&quot;&gt;http://blog.minidx.com/2008/07/07/1054.html&lt;/a&gt;&lt;/div&gt;
&lt;p&gt;&lt;/p&gt;
&lt;h3&gt;Related Post&lt;/h3&gt;&lt;ul class=&quot;related_post&quot;&gt;&lt;li&gt;&lt;a href=&quot;http://blog.minidx.com/2008/07/01/1019.html&quot; title=&quot;经典Flex教程：如何创建自己的Flex组件&quot;&gt;经典Flex教程：如何创建自己的Flex组件&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;http://blog.minidx.com/2008/07/06/1046.html&quot; title=&quot;Flash中的数据传递给Flex并且返回给Flash的教程&quot;&gt;Flash中的数据传递给Flex并且返回给Flash的教程&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;http://blog.minidx.com/2008/07/06/1045.html&quot; title=&quot;Flex中不用ScrollBar实现滚动效果&quot;&gt;Flex中不用ScrollBar实现滚动效果&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;http://blog.minidx.com/2008/07/05/1036.html&quot; title=&quot;OutSmart OS3D的Demo&amp;#8211;这里的控件扭曲是怎么实现的？&quot;&gt;OutSmart OS3D的Demo&amp;#8211;这里的控件扭曲是怎么实现的？&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;http://blog.minidx.com/2008/07/03/1031.html&quot; title=&quot;一篇关于Flex中实现Mask效果的介绍(附源代码)&quot;&gt;一篇关于Flex中实现Mask效果的介绍(附源代码)&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;http://blog.minidx.com/2008/06/30/1016.html&quot; title=&quot;aPDF&amp;#8211;Flex中创建并且输出PDF文件的又一个开源开发包&quot;&gt;aPDF&amp;#8211;Flex中创建并且输出PDF文件的又一个开源开发包&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;http://blog.minidx.com/2008/06/29/1011.html&quot; title=&quot;Flex中在运行时加载Skins的教程&quot;&gt;Flex中在运行时加载Skins的教程&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;http://blog.minidx.com/2008/06/28/1004.html&quot; title=&quot;超过10万的免费字体让您的Flex UI(Skin和Theme)鹤立鸡群&quot;&gt;超过10万的免费字体让您的Flex UI(Skin和Theme)鹤立鸡群&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;http://blog.minidx.com/2008/06/26/929.html&quot; title=&quot;Flexible Rails: Flex 3 on Rails 2，一本介绍如何将Flex和Rails结合起来使用的书下载&quot;&gt;Flexible Rails: Flex 3 on Rails 2，一本介绍如何将Flex和Rails结合起来使用的书下载&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;http://blog.minidx.com/2008/06/21/922.html&quot; title=&quot;Web开发中Flex程序员们可真是&amp;ldquo;钱途&amp;rdquo;无量啊&quot;&gt;Web开发中Flex程序员们可真是&amp;ldquo;钱途&amp;rdquo;无量啊&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;http://blog.minidx.com/2008/06/20/913.html&quot; title=&quot;关于如何在Flex中使用FIVe3D&quot;&gt;关于如何在Flex中使用FIVe3D&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;http://blog.minidx.com/2008/06/09/901.html&quot; title=&quot;Flair&amp;#8211;一个让你在线创建Flex/AIR应用程序的项目&quot;&gt;Flair&amp;#8211;一个让你在线创建Flex/AIR应用程序的项目&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;http://blog.minidx.com/2008/06/08/895.html&quot; title=&quot;利用Away3D快速创建Flex/Flash的3D应用的教程&quot;&gt;利用Away3D快速创建Flex/Flash的3D应用的教程&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;http://blog.minidx.com/2008/06/07/894.html&quot; title=&quot;Flex中利用Ruby on Rails解决超大文件上传问题&quot;&gt;Flex中利用Ruby on Rails解决超大文件上传问题&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;http://blog.minidx.com/2008/06/07/889.html&quot; title=&quot;Flex中通过设置fontFamily和labelStyleName样式在HSlider控件中使用嵌入字体的例子&quot;&gt;Flex中通过设置fontFamily和labelStyleName样式在HSlider控件中使用嵌入字体的例子&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;http://blog.minidx.com/2008/06/06/888.html&quot; title=&quot;Flex中如何通过设置tickLength样式设定HSlider控件上一个标记号(tick)长度的例子&quot;&gt;Flex中如何通过设置tickLength样式设定HSlider控件上一个标记号(tick)长度的例子&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;http://blog.minidx.com/2008/06/06/887.html&quot; title=&quot;Flex中通过设置textAlign样式在一个List控件中改变文本对齐方向的例子&quot;&gt;Flex中通过设置textAlign样式在一个List控件中改变文本对齐方向的例子&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;http://blog.minidx.com/2008/06/05/886.html&quot; title=&quot;Flex中如何通过设置fontFamily样式在ComboBox控件中使用自定义嵌入字体的例子&quot;&gt;Flex中如何通过设置fontFamily样式在ComboBox控件中使用自定义嵌入字体的例子&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;http://blog.minidx.com/2008/06/05/885.html&quot; title=&quot;Flex中如何通过prompt属性在ComboBox控件中添加一个提示项(prompt)的例子&quot;&gt;Flex中如何通过prompt属性在ComboBox控件中添加一个提示项(prompt)的例子&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;http://blog.minidx.com/2008/06/05/884.html&quot; title=&quot;Flex中如何通过设定headerStyleName样式在Accordion控件中使用嵌入字体的例子&quot;&gt;Flex中如何通过设定headerStyleName样式在Accordion控件中使用嵌入字体的例子&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;&lt;!-- Feedsky ad --&gt;&lt;a href=&quot;http://feed.feedsky.com/~cpm/c/minidx/9129c1f04b2c0f8569c41a5f3b505f5e&quot;&gt;&lt;img src=&quot;http://feed.feedsky.com/~cpm/minidx/9129c1f04b2c0f8569c41a5f3b505f5e/s.gif&quot; border=&quot;0&quot; style=&quot;margin-top:5px;&quot; /&gt;&lt;/a&gt;&lt;!-- /Feedsky ad --&gt;&lt;br /&gt;&lt;!-- Feedsky flare --&gt;&lt;a href=&quot;http://feed.feedsky.com/~flare/minidx?a=23af84ae3e34a69f37f13f9645f7edfb&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;http://feed.feedsky.com/~flare/minidx?i=23af84ae3e34a69f37f13f9645f7edfb&quot; border=&quot;0&quot;&gt;&lt;/a&gt;&lt;a href=&quot;http://feed.feedsky.com/~flare/minidx?a=e6128299c569ac43eaf5e2b8dbcd5ab7&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;http://feed.feedsky.com/~flare/minidx?i=e6128299c569ac43eaf5e2b8dbcd5ab7&quot; border=&quot;0&quot;&gt;&lt;/a&gt;&lt;a href=&quot;http://feed.feedsky.com/~flare/minidx?a=8bdd08d95d4819aa793209a0766364cb&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;http://feed.feedsky.com/~flare/minidx?i=8bdd08d95d4819aa793209a0766364cb&quot; border=&quot;0&quot;&gt;&lt;/a&gt;&lt;a href=&quot;http://feed.feedsky.com/~flare/minidx?a=a36db4cd4961275cd67d9b5f56b02a87&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;http://feed.feedsky.com/~flare/minidx?i=a36db4cd4961275cd67d9b5f56b02a87&quot; border=&quot;0&quot;&gt;&lt;/a&gt;&lt;a href=&quot;http://feed.feedsky.com/~flare/minidx?a=ad38c76e9a201c4d220cd21fa66c1937&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;http://feed.feedsky.com/~flare/minidx?i=ad38c76e9a201c4d220cd21fa66c1937&quot; border=&quot;0&quot;&gt;&lt;/a&gt;&lt;a href=&quot;http://feed.feedsky.com/~flare/minidx?a=7b80171e6cf5d624e0fe78d5d157698f&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;http://feed.feedsky.com/~flare/minidx?i=7b80171e6cf5d624e0fe78d5d157698f&quot; border=&quot;0&quot;&gt;&lt;/a&gt;&lt;!-- /Feedsky flare --&gt;</content:encoded><wfw:commentRss>http://blog.minidx.com/2008/07/07/1054.html/feed</wfw:commentRss><description>Jam-Packed是Peter Baird 2007年发布在macromedia.com上的一款Flex Style Explorer，1年的时间很快，上面很多的当时的新特性如今看来也许已经成了理所当然的了，不过不管怎么说，细细看来，Jam-Packed各种风格上依然很具有魅力，不愧是一款经典之作，有兴趣的可以直接去看看：

 
http://weblogs.macromedia.com/mc/archives/2007/02/new_flex_style.html
Permalink:http://blog.minidx.com/2008/07/07/1054.html

Related Post经典Flex教程：如何创建自己的Flex组件Flash中的数据传递给Flex并且返回给Flash的教程Flex中不用ScrollBar实现滚动效果OutSmart OS3D的Demo&amp;#8211;这里的控件扭曲是怎么实现的？一篇关于Flex中实现Mask效果的介绍(附源代码)aPDF&amp;#8211;Flex中创建并且输出PDF文件的又一个开源开发包Flex中在运行时加载Skins的教程超过10万的免费字体让您的Flex UI(Skin和Theme)鹤立鸡群Flexible Rails: Flex 3 on Rails 2，一本介绍如何将Flex和Rails结合起来使用的书下载Web开发中Flex程序员们可真是&amp;#8220;钱途&amp;#8221;无量啊关于如何在Flex中使用FIVe3DFlair&amp;#8211;一个让你在线创建Flex/AIR应用程序的项目利用Away3D快速创建Flex/Flash的3D应用的教程Flex中利用Ruby on Rails解决超大文件上传问题Flex中通过设置fontFamily和labelStyleName样式在HSlider控件中使用嵌入字体的例子Flex中如何通过设置tickLength样式设定HSlider控件上一个标记号(tick)长度的例子Flex中通过设置textAlign样式在一个List控件中改变文本对齐方向的例子Flex中如何通过设置fontFamily样式在ComboBox控件中使用自定义嵌入字体的例子Flex中如何通过prompt属性在ComboBox控件中添加一个提示项(prompt)的例子Flex中如何通过设定headerStyleName样式在Accordion控件中使用嵌入字体的例子&lt;br /&gt;&lt;!-- Feedsky ad --&gt;&lt;a href=&quot;http://feed.feedsky.com/~cpm/c/minidx/9129c1f04b2c0f8569c41a5f3b505f5e&quot;&gt;&lt;img src=&quot;http://feed.feedsky.com/~cpm/minidx/9129c1f04b2c0f8569c41a5f3b505f5e/s.gif&quot; border=&quot;0&quot; style=&quot;margin-top:5px;&quot; /&gt;&lt;/a&gt;&lt;!-- /Feedsky ad --&gt;&lt;br /&gt;&lt;!-- Feedsky flare --&gt;&lt;a href=&quot;http://feed.feedsky.com/~flare/minidx?a=23af84ae3e34a69f37f13f9645f7edfb&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;http://feed.feedsky.com/~flare/minidx?i=23af84ae3e34a69f37f13f9645f7edfb&quot; border=&quot;0&quot;&gt;&lt;/a&gt;&lt;a href=&quot;http://feed.feedsky.com/~flare/minidx?a=e6128299c569ac43eaf5e2b8dbcd5ab7&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;http://feed.feedsky.com/~flare/minidx?i=e6128299c569ac43eaf5e2b8dbcd5ab7&quot; border=&quot;0&quot;&gt;&lt;/a&gt;&lt;a href=&quot;http://feed.feedsky.com/~flare/minidx?a=8bdd08d95d4819aa793209a0766364cb&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;http://feed.feedsky.com/~flare/minidx?i=8bdd08d95d4819aa793209a0766364cb&quot; border=&quot;0&quot;&gt;&lt;/a&gt;&lt;a href=&quot;http://feed.feedsky.com/~flare/minidx?a=a36db4cd4961275cd67d9b5f56b02a87&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;http://feed.feedsky.com/~flare/minidx?i=a36db4cd4961275cd67d9b5f56b02a87&quot; border=&quot;0&quot;&gt;&lt;/a&gt;&lt;a href=&quot;http://feed.feedsky.com/~flare/minidx?a=ad38c76e9a201c4d220cd21fa66c1937&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;http://feed.feedsky.com/~flare/minidx?i=ad38c76e9a201c4d220cd21fa66c1937&quot; border=&quot;0&quot;&gt;&lt;/a&gt;&lt;a href=&quot;http://feed.feedsky.com/~flare/minidx?a=7b80171e6cf5d624e0fe78d5d157698f&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;http://feed.feedsky.com/~flare/minidx?i=7b80171e6cf5d624e0fe78d5d157698f&quot; border=&quot;0&quot;&gt;&lt;/a&gt;&lt;!-- /Feedsky flare --&gt;</description><category>Flex</category><category>Jam-Packed</category><category>Style</category><category>Macromedia</category><category>Adobe其他</category><category>Explorer</category><pubDate>Mon, 07 Jul 2008 22:16:24 +0800</pubDate><author>Minidxer</author><comments>http://blog.minidx.com/2008/07/07/1054.html#comments</comments><guid isPermaLink="false">http://blog.minidx.com/2008/07/07/1054.html</guid><dc:creator>Minidxer</dc:creator><fs:srclink>http://blog.minidx.com/2008/07/07/1054.html</fs:srclink><fs:srcfeed>http://blog.minidx.com/?feed=rss2</fs:srcfeed><fs:itemid>feedsky/minidx/~6075588/91718817/4183404</fs:itemid></item><item><title>Flex中如何利用fontFamily和dropdownStyleName样式在ComboBox控件中嵌入字体的例子</title><link>http://item.feedsky.com/~feedsky/minidx/~6075588/91718818/4183404/1/item.html</link><content:encoded>&lt;p&gt;接下来的例子演示了Flex中如何利用fontFamily和dropdownStyleName样式,在ComboBox控件中嵌入字体。&lt;/p&gt;
&lt;p&gt;&lt;code&gt;让我们先来看一下Demo（&lt;/code&gt;可以右键View Source或&lt;a href=&quot;http://blog.minidx.com/ext02/using-embedded-fonts-with-the-combobox-control-in-flex/srcview/index.html&quot; target=&quot;_blank&quot;&gt;点击这里&lt;/a&gt;察看源代码&lt;code&gt;）：&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;!--more--&gt;&lt;/p&gt;
&lt;p&gt;&lt;iframe src=&quot;http://blog.minidx.com/ext02/using-embedded-fonts-with-the-combobox-control-in-flex/main.html&quot; width=&quot;480&quot; height=&quot;200&quot;&gt;&lt;/iframe&gt;&lt;/p&gt;
&lt;p&gt;下面是完整代码(或&lt;a href=&quot;http://blog.minidx.com/ext02/using-embedded-fonts-with-the-combobox-control-in-flex/srcview/index.html&quot; target=&quot;_blank&quot;&gt;点击这里&lt;/a&gt;察看)：&lt;/p&gt;
&lt;div class=&quot;hl-title&quot;&gt;Download: &lt;a href=&quot;http://blog.minidx.com/wp-content/plugins/coolcode/coolcode.php?p=1051&amp;amp;download=main.mxml&quot;&gt;main.mxml&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;hl-surround&quot;&gt;&lt;ol class=&quot;hl-main ln-show&quot; title=&quot;Double click to hide line number.&quot; ondblclick = &quot;linenumber(this)&quot;&gt;&lt;li class=&quot;hl-firstline&quot;&gt;&lt;span style=&quot;color: Olive;&quot;&gt;&amp;lt;?&lt;/span&gt;&lt;span style=&quot;color: Green;&quot;&gt;xml&lt;/span&gt;&lt;span style=&quot;color: Gray;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #00008b;&quot;&gt;version&lt;/span&gt;&lt;span style=&quot;color: Gray;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #8b0000;&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: Red;&quot;&gt;1.0&lt;/span&gt;&lt;span style=&quot;color: #8b0000;&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: Gray;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #00008b;&quot;&gt;encoding&lt;/span&gt;&lt;span style=&quot;color: Gray;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #8b0000;&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: Red;&quot;&gt;utf-8&lt;/span&gt;&lt;span style=&quot;color: #8b0000;&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: Olive;&quot;&gt;?&amp;gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;color: Olive;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: Green;&quot;&gt;mx:Application&lt;/span&gt;&lt;span style=&quot;color: Gray;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #00008b;&quot;&gt;xmlns:mx&lt;/span&gt;&lt;span style=&quot;color: Gray;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #8b0000;&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: Red;&quot;&gt;http://www.adobe.com/2006/mxml&lt;/span&gt;&lt;span style=&quot;color: #8b0000;&quot;&gt;&amp;quot;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;color: Gray;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #00008b;&quot;&gt;layout&lt;/span&gt;&lt;span style=&quot;color: Gray;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #8b0000;&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: Red;&quot;&gt;vertical&lt;/span&gt;&lt;span style=&quot;color: #8b0000;&quot;&gt;&amp;quot;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;color: Gray;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #00008b;&quot;&gt;verticalAlign&lt;/span&gt;&lt;span style=&quot;color: Gray;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #8b0000;&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: Red;&quot;&gt;top&lt;/span&gt;&lt;span style=&quot;color: #8b0000;&quot;&gt;&amp;quot;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;color: Gray;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #00008b;&quot;&gt;backgroundColor&lt;/span&gt;&lt;span style=&quot;color: Gray;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #8b0000;&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: Red;&quot;&gt;white&lt;/span&gt;&lt;span style=&quot;color: #8b0000;&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: Olive;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;color: Gray;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;color: Gray;&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: Olive;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: Green;&quot;&gt;mx:Style&lt;/span&gt;&lt;span style=&quot;color: Olive;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;color: Gray;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; @font-face {&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;color: Gray;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; src: local(&amp;quot;Comic Sans MS&amp;quot;);&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;color: Gray;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; fontFamily: EmbeddedComicSansMS;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;color: Gray;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; fontWeight: normal;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;color: Gray;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;color: Gray;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;color: Gray;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; @font-face {&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;color: Gray;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; src: local(&amp;quot;Comic Sans MS&amp;quot;);&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;color: Gray;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; fontFamily: EmbeddedComicSansMS;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;color: Gray;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; fontWeight: bold;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;color: Gray;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;color: Gray;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;color: Gray;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ComboBox {&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;color: Gray;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; fontFamily: EmbeddedComicSansMS;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;color: Gray;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;color: Gray;&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: Olive;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: Green;&quot;&gt;mx:Style&lt;/span&gt;&lt;span style=&quot;color: Olive;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;color: Gray;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;color: Gray;&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: Olive;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: Green;&quot;&gt;mx:Array&lt;/span&gt;&lt;span style=&quot;color: Gray;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #00008b;&quot;&gt;id&lt;/span&gt;&lt;span style=&quot;color: Gray;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #8b0000;&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: Red;&quot;&gt;arr&lt;/span&gt;&lt;span style=&quot;color: #8b0000;&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: Olive;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;color: Gray;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: Olive;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: Green;&quot;&gt;mx:Object&lt;/span&gt;&lt;span style=&quot;color: Gray;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #00008b;&quot;&gt;label&lt;/span&gt;&lt;span style=&quot;color: Gray;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #8b0000;&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: Red;&quot;&gt;One&lt;/span&gt;&lt;span style=&quot;color: #8b0000;&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: Gray;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: Olive;&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;color: Gray;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: Olive;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: Green;&quot;&gt;mx:Object&lt;/span&gt;&lt;span style=&quot;color: Gray;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #00008b;&quot;&gt;label&lt;/span&gt;&lt;span style=&quot;color: Gray;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #8b0000;&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: Red;&quot;&gt;Two&lt;/span&gt;&lt;span style=&quot;color: #8b0000;&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: Gray;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: Olive;&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;color: Gray;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: Olive;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: Green;&quot;&gt;mx:Object&lt;/span&gt;&lt;span style=&quot;color: Gray;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #00008b;&quot;&gt;label&lt;/span&gt;&lt;span style=&quot;color: Gray;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #8b0000;&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: Red;&quot;&gt;Three&lt;/span&gt;&lt;span style=&quot;color: #8b0000;&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: Gray;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: Olive;&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;color: Gray;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: Olive;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: Green;&quot;&gt;mx:Object&lt;/span&gt;&lt;span style=&quot;color: Gray;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #00008b;&quot;&gt;label&lt;/span&gt;&lt;span style=&quot;color: Gray;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #8b0000;&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: Red;&quot;&gt;Four&lt;/span&gt;&lt;span style=&quot;color: #8b0000;&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: Gray;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: Olive;&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;color: Gray;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: Olive;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: Green;&quot;&gt;mx:Object&lt;/span&gt;&lt;span style=&quot;color: Gray;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #00008b;&quot;&gt;label&lt;/span&gt;&lt;span style=&quot;color: Gray;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #8b0000;&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: Red;&quot;&gt;Five&lt;/span&gt;&lt;span style=&quot;color: #8b0000;&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: Gray;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: Olive;&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;color: Gray;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: Olive;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: Green;&quot;&gt;mx:Object&lt;/span&gt;&lt;span style=&quot;color: Gray;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #00008b;&quot;&gt;label&lt;/span&gt;&lt;span style=&quot;color: Gray;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #8b0000;&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: Red;&quot;&gt;Six&lt;/span&gt;&lt;span style=&quot;color: #8b0000;&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: Gray;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: Olive;&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;color: Gray;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: Olive;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: Green;&quot;&gt;mx:Object&lt;/span&gt;&lt;span style=&quot;color: Gray;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #00008b;&quot;&gt;label&lt;/span&gt;&lt;span style=&quot;color: Gray;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #8b0000;&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: Red;&quot;&gt;Seven&lt;/span&gt;&lt;span style=&quot;color: #8b0000;&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: Gray;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: Olive;&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;color: Gray;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: Olive;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: Green;&quot;&gt;mx:Object&lt;/span&gt;&lt;span style=&quot;color: Gray;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #00008b;&quot;&gt;label&lt;/span&gt;&lt;span style=&quot;color: Gray;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #8b0000;&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: Red;&quot;&gt;Eight&lt;/span&gt;&lt;span style=&quot;color: #8b0000;&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: Gray;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: Olive;&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;color: Gray;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: Olive;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: Green;&quot;&gt;mx:Object&lt;/span&gt;&lt;span style=&quot;color: Gray;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #00008b;&quot;&gt;label&lt;/span&gt;&lt;span style=&quot;color: Gray;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #8b0000;&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: Red;&quot;&gt;Nine&lt;/span&gt;&lt;span style=&quot;color: #8b0000;&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: Gray;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: Olive;&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;color: Gray;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: Olive;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: Green;&quot;&gt;mx:Object&lt;/span&gt;&lt;span style=&quot;color: Gray;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #00008b;&quot;&gt;label&lt;/span&gt;&lt;span style=&quot;color: Gray;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #8b0000;&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: Red;&quot;&gt;Ten&lt;/span&gt;&lt;span style=&quot;color: #8b0000;&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: Gray;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: Olive;&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;color: Gray;&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: Olive;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: Green;&quot;&gt;mx:Array&lt;/span&gt;&lt;span style=&quot;color: Olive;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;color: Gray;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;color: Gray;&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: Olive;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: Green;&quot;&gt;mx:ComboBox&lt;/span&gt;&lt;span style=&quot;color: Gray;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #00008b;&quot;&gt;id&lt;/span&gt;&lt;span style=&quot;color: Gray;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #8b0000;&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: Red;&quot;&gt;comboBox&lt;/span&gt;&lt;span style=&quot;color: #8b0000;&quot;&gt;&amp;quot;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;color: Gray;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #00008b;&quot;&gt;dataProvider&lt;/span&gt;&lt;span style=&quot;color: Gray;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #8b0000;&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: Red;&quot;&gt;{arr}&lt;/span&gt;&lt;span style=&quot;color: #8b0000;&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: Gray;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: Olive;&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;color: Gray;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;color: Olive;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: Green;&quot;&gt;mx:Application&lt;/span&gt;&lt;span style=&quot;color: Olive;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/div&gt;
&lt;pre&gt;代码：&lt;a href=&quot;http://blog.flexexamples.com/2008/07/06/using-embedded-fonts-with-the-combobox-control-in-flex/&quot; target=&quot;_blank&quot;&gt;Peter deHaan&lt;/a&gt; 翻译/整理/编译：&lt;a href=&quot;http://blog.minidx.com&quot;&gt;minidxer&lt;/a&gt;&lt;/pre&gt;
&lt;div style=&quot;background:#EDEDED none repeat scroll 0%;border:1px solid #990033;height:40px;line-height:40px; auto;text-align:center;&quot;&gt;Permalink:&lt;a href=&quot;http://blog.minidx.com/2008/07/07/1051.html&quot;&gt;http://blog.minidx.com/2008/07/07/1051.html&lt;/a&gt;&lt;/div&gt;
&lt;p&gt;&lt;/p&gt;
&lt;h3&gt;Related Post&lt;/h3&gt;&lt;ul class=&quot;related_post&quot;&gt;&lt;li&gt;&lt;a href=&quot;http://blog.minidx.com/2008/07/08/1057.html&quot; title=&quot;Flex中如何利用useRollOver样式固定ComboBox控件下拉菜单中项目高亮(hightlighting)的例子&quot;&gt;Flex中如何利用useRollOver样式固定ComboBox控件下拉菜单中项目高亮(hightlighting)的例子&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;http://blog.minidx.com/2008/06/20/914.html&quot; title=&quot;Flex中通过设置fontFamily样式在调色板(ColorPicker)控件中使用自定义嵌入字体的例子&quot;&gt;Flex中通过设置fontFamily样式在调色板(ColorPicker)控件中使用自定义嵌入字体的例子&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;http://blog.minidx.com/2008/06/08/896.html&quot; title=&quot;Flex中通过设定fontFamily和fontWeight样式在TabBar控件中使用嵌入字体的例子&quot;&gt;Flex中通过设定fontFamily和fontWeight样式在TabBar控件中使用嵌入字体的例子&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;http://blog.minidx.com/2008/06/07/889.html&quot; title=&quot;Flex中通过设置fontFamily和labelStyleName样式在HSlider控件中使用嵌入字体的例子&quot;&gt;Flex中通过设置fontFamily和labelStyleName样式在HSlider控件中使用嵌入字体的例子&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;http://blog.minidx.com/2008/06/05/886.html&quot; title=&quot;Flex中如何通过设置fontFamily样式在ComboBox控件中使用自定义嵌入字体的例子&quot;&gt;Flex中如何通过设置fontFamily样式在ComboBox控件中使用自定义嵌入字体的例子&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;http://blog.minidx.com/2008/07/08/1056.html&quot; title=&quot;Flex中创建两个关联的ComboBox的例子&quot;&gt;Flex中创建两个关联的ComboBox的例子&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;http://blog.minidx.com/2008/07/06/1039.html&quot; title=&quot;Flex中如何通过iconColor样式设置ComboBox控件下拉菜单图标(那两个上下三角图标)颜色的例子&quot;&gt;Flex中如何通过iconColor样式设置ComboBox控件下拉菜单图标(那两个上下三角图标)颜色的例子&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;http://blog.minidx.com/2008/07/05/1037.html&quot; title=&quot;Flex的ComboBox控件中如何利用variableRowHeight属性创建可变高度的行的例子&quot;&gt;Flex的ComboBox控件中如何利用variableRowHeight属性创建可变高度的行的例子&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;http://blog.minidx.com/2008/07/04/1033.html&quot; title=&quot;Flex中如何通过iconColor样式设置ComboBox控件图标(那个下三角图标)颜色的例子&quot;&gt;Flex中如何通过iconColor样式设置ComboBox控件图标(那个下三角图标)颜色的例子&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;http://blog.minidx.com/2008/07/03/1032.html&quot; title=&quot;Flex中通过dropdownWidth属性设置下拉菜单(dropdown)宽度的例子&quot;&gt;Flex中通过dropdownWidth属性设置下拉菜单(dropdown)宽度的例子&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;http://blog.minidx.com/2008/07/02/1026.html&quot; title=&quot;Flex中如何通过在ComboBox控件的dropdown属性中设置scrollTipFunction属性格式化滚动tips内容的例子&quot;&gt;Flex中如何通过在ComboBox控件的dropdown属性中设置scrollTipFunction属性格式化滚动tips内容的例子&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;http://blog.minidx.com/2008/07/02/1025.html&quot; title=&quot;Flex中如何通过在ComboBox控件的dropdown属性中设置showScrollTips属性使滚动tips随着下拉菜单滚动的例子&quot;&gt;Flex中如何通过在ComboBox控件的dropdown属性中设置showScrollTips属性使滚动tips随着下拉菜单滚动的例子&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;http://blog.minidx.com/2008/06/19/911.html&quot; title=&quot;Flex中通过设置fillColors样式改变ComboBox控件的填充背景颜色的例子&quot;&gt;Flex中通过设置fillColors样式改变ComboBox控件的填充背景颜色的例子&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;http://blog.minidx.com/2008/06/17/906.html&quot; title=&quot;Flex中通过设置rowCount属性在ComboBox控件的下拉菜单中设置显示项目个数的例子&quot;&gt;Flex中通过设置rowCount属性在ComboBox控件的下拉菜单中设置显示项目个数的例子&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;http://blog.minidx.com/2008/06/10/903.html&quot; title=&quot;Flex中通过设定borderColor样式给ComboBox控件设置边框颜色的例子&quot;&gt;Flex中通过设定borderColor样式给ComboBox控件设置边框颜色的例子&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;http://blog.minidx.com/2008/06/05/885.html&quot; title=&quot;Flex中如何通过prompt属性在ComboBox控件中添加一个提示项(prompt)的例子&quot;&gt;Flex中如何通过prompt属性在ComboBox控件中添加一个提示项(prompt)的例子&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;http://blog.minidx.com/2008/05/19/862.html&quot; title=&quot;Flex中如何通过设置fontFamily样式在NumericStepper控件中使用嵌入字体的例子&quot;&gt;Flex中如何通过设置fontFamily样式在NumericStepper控件中使用嵌入字体的例子&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;http://blog.minidx.com/2008/04/02/674.html&quot; title=&quot;Flex应用中如何利用source属性嵌入字体的例子&quot;&gt;Flex应用中如何利用source属性嵌入字体的例子&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;&lt;!-- Feedsky ad --&gt;&lt;a href=&quot;http://feed.feedsky.com/~cpm/c/minidx/2b6eb88f64e23822b99bb2132d0bd3dd&quot;&gt;&lt;img src=&quot;http://feed.feedsky.com/~cpm/minidx/2b6eb88f64e23822b99bb2132d0bd3dd/s.gif&quot; border=&quot;0&quot; style=&quot;margin-top:5px;&quot; /&gt;&lt;/a&gt;&lt;!-- /Feedsky ad --&gt;&lt;br /&gt;&lt;!-- Feedsky flare --&gt;&lt;a href=&quot;http://feed.feedsky.com/~flare/minidx?a=0ce6939be767c47f3ca36a79b949c7ef&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;http://feed.feedsky.com/~flare/minidx?i=0ce6939be767c47f3ca36a79b949c7ef&quot; border=&quot;0&quot;&gt;&lt;/a&gt;&lt;a href=&quot;http://feed.feedsky.com/~flare/minidx?a=81c9e373886fc07452f72da8901e30bc&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;http://feed.feedsky.com/~flare/minidx?i=81c9e373886fc07452f72da8901e30bc&quot; border=&quot;0&quot;&gt;&lt;/a&gt;&lt;a href=&quot;http://feed.feedsky.com/~flare/minidx?a=3b3542a42418ac089bcf256a51bcccd1&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;http://feed.feedsky.com/~flare/minidx?i=3b3542a42418ac089bcf256a51bcccd1&quot; border=&quot;0&quot;&gt;&lt;/a&gt;&lt;a href=&quot;http://feed.feedsky.com/~flare/minidx?a=76a3d6f989a2769e8cc8dc03af141bdb&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;http://feed.feedsky.com/~flare/minidx?i=76a3d6f989a2769e8cc8dc03af141bdb&quot; border=&quot;0&quot;&gt;&lt;/a&gt;&lt;a href=&quot;http://feed.feedsky.com/~flare/minidx?a=f867d80088962c0fe03bce54198c95cf&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;http://feed.feedsky.com/~flare/minidx?i=f867d80088962c0fe03bce54198c95cf&quot; border=&quot;0&quot;&gt;&lt;/a&gt;&lt;a href=&quot;http://feed.feedsky.com/~flare/minidx?a=8a0884fbfa5efcc08123cb8a644b4ddc&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;http://feed.feedsky.com/~flare/minidx?i=8a0884fbfa5efcc08123cb8a644b4ddc&quot; border=&quot;0&quot;&gt;&lt;/a&gt;&lt;!-- /Feedsky flare --&gt;</content:encoded><wfw:commentRss>http://blog.minidx.com/2008/07/07/1051.html/feed</wfw:commentRss><description>接下来的例子演示了Flex中如何利用fontFamily和dropdownStyleName样式,在ComboBox控件中嵌入字体。
让我们先来看一下Demo（可以右键View Source或点击这里察看源代码）：


下面是完整代码(或点击这里察看)：
Download: main.mxml&amp;#60;?xml version=&amp;#34;1.0&amp;#34; encoding=&amp;#34;utf-8&amp;#34;?&amp;#62;
&amp;#60;mx:Application&amp;#160;xmlns:mx=&amp;#34;http://www.adobe.com/2006/mxml&amp;#34;
&amp;#160; &amp;#160; &amp;#160; &amp;#160; layout=&amp;#34;vertical&amp;#34;
&amp;#160; &amp;#160; &amp;#160; &amp;#160; verticalAlign=&amp;#34;top&amp;#34;
&amp;#160; &amp;#160; &amp;#160; &amp;#160; backgroundColor=&amp;#34;white&amp;#34;&amp;#62;
&amp;#160;
&amp;#160; &amp;#160; &amp;#60;mx:Style&amp;#62;
&amp;#160; &amp;#160; &amp;#160; &amp;#160; @font-face {
&amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; src: local(&amp;#34;Comic Sans MS&amp;#34;);
&amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; fontFamily: EmbeddedComicSansMS;
&amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; fontWeight: normal;
&amp;#160; &amp;#160; &amp;#160; &amp;#160; }
&amp;#160;
&amp;#160; &amp;#160; &amp;#160; &amp;#160; @font-face [...]&lt;br /&gt;&lt;!-- Feedsky ad --&gt;&lt;a href=&quot;http://feed.feedsky.com/~cpm/c/minidx/2b6eb88f64e23822b99bb2132d0bd3dd&quot;&gt;&lt;img src=&quot;http://feed.feedsky.com/~cpm/minidx/2b6eb88f64e23822b99bb2132d0bd3dd/s.gif&quot; border=&quot;0&quot; style=&quot;margin-top:5px;&quot; /&gt;&lt;/a&gt;&lt;!-- /Feedsky ad --&gt;&lt;br /&gt;&lt;!-- Feedsky flare --&gt;&lt;a href=&quot;http://feed.feedsky.com/~flare/minidx?a=0ce6939be767c47f3ca36a79b949c7ef&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;http://feed.feedsky.com/~flare/minidx?i=0ce6939be767c47f3ca36a79b949c7ef&quot; border=&quot;0&quot;&gt;&lt;/a&gt;&lt;a href=&quot;http://feed.feedsky.com/~flare/minidx?a=81c9e373886fc07452f72da8901e30bc&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;http://feed.feedsky.com/~flare/minidx?i=81c9e373886fc07452f72da8901e30bc&quot; border=&quot;0&quot;&gt;&lt;/a&gt;&lt;a href=&quot;http://feed.feedsky.com/~flare/minidx?a=3b3542a42418ac089bcf256a51bcccd1&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;http://feed.feedsky.com/~flare/minidx?i=3b3542a42418ac089bcf256a51bcccd1&quot; border=&quot;0&quot;&gt;&lt;/a&gt;&lt;a href=&quot;http://feed.feedsky.com/~flare/minidx?a=76a3d6f989a2769e8cc8dc03af141bdb&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;http://feed.feedsky.com/~flare/minidx?i=76a3d6f989a2769e8cc8dc03af141bdb&quot; border=&quot;0&quot;&gt;&lt;/a&gt;&lt;a href=&quot;http://feed.feedsky.com/~flare/minidx?a=f867d80088962c0fe03bce54198c95cf&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;http://feed.feedsky.com/~flare/minidx?i=f867d80088962c0fe03bce54198c95cf&quot; border=&quot;0&quot;&gt;&lt;/a&gt;&lt;a href=&quot;http://feed.feedsky.com/~flare/minidx?a=8a0884fbfa5efcc08123cb8a644b4ddc&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;http://feed.feedsky.com/~flare/minidx?i=8a0884fbfa5efcc08123cb8a644b4ddc&quot; border=&quot;0&quot;&gt;&lt;/a&gt;&lt;!-- /Feedsky flare --&gt;</description><category>Flex</category><category>fontFamily</category><category>嵌入字体</category><category>ComboBox</category><category>dropdownStyleName</category><pubDate>Mon, 07 Jul 2008 21:02:46 +0800</pubDate><author>Minidxer</author><comments>http://blog.minidx.com/2008/07/07/1051.html#comments</comments><guid isPermaLink="false">http://blog.minidx.com/2008/07/07/1051.html</guid><dc:creator>Minidxer</dc:creator><fs:srclink>http://blog.minidx.com/2008/07/07/1051.html</fs:srclink><fs:srcfeed>http://blog.minidx.com/?feed=rss2</fs:srcfeed><fs:itemid>feedsky/minidx/~6075588/91718818/4183404</fs:itemid></item><item><title>Flex中利用Bitmap和BitmapData类创建FLV暗点缩略图的例子</title><link>http://item.feedsky.com/~feedsky/minidx/~6075588/90792354/4183404/1/item.html</link><content:encoded>&lt;p&gt;&lt;code&gt;在前面的不少例子中都介绍过FLV暗点相关的内容（比如：&lt;/code&gt;&lt;a href=&quot;http://blog.minidx.com/2008/06/29/1009.html&quot;&gt;Flex中如何利用cuePointManager属性和addCuePoint事件往FLV中添加ActionScript暗点的例子&lt;/a&gt;&lt;code&gt;），接下来的例子演示了Flex中如何利用Bitmap和BitmapData类，创建FLV暗点缩略图。&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;让我们先来看一下Demo（&lt;/code&gt;可以右键View Source或&lt;a href=&quot;http://blog.minidx.com/ext02/creating-flv-cuepoint-thumbnails-using-the-bitmap-and-bitmapdata-classes/srcview/index.html&quot;&gt;点击这里&lt;/a&gt;察看源代码&lt;code&gt;）：&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;!--more--&gt;&lt;/p&gt;
&lt;p&gt;&lt;iframe src=&quot;http://blog.minidx.com/ext02/creating-flv-cuepoint-thumbnails-using-the-bitmap-and-bitmapdata-classes/main.html&quot; width=&quot;480&quot; height=&quot;400&quot;&gt;&lt;/iframe&gt;&lt;/p&gt;
&lt;p&gt;下面是完整代码(或&lt;a href=&quot;http://blog.minidx.com/ext02/creating-flv-cuepoint-thumbnails-using-the-bitmap-and-bitmapdata-classes/srcview/index.html&quot;&gt;点击这里&lt;/a&gt;察看)：&lt;/p&gt;
&lt;div class=&quot;hl-title&quot;&gt;Download: &lt;a href=&quot;http://blog.minidx.com/wp-content/plugins/coolcode/coolcode.php?p=1050&amp;amp;download=main.mxml&quot;&gt;main.mxml&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;hl-surround&quot;&gt;&lt;ol class=&quot;hl-main ln-show&quot; title=&quot;Double click to hide line number.&quot; ondblclick = &quot;linenumber(this)&quot;&gt;&lt;li class=&quot;hl-firstline&quot;&gt;&lt;span style=&quot;color: Olive;&quot;&gt;&amp;lt;?&lt;/span&gt;&lt;span style=&quot;color: Green;&quot;&gt;xml&lt;/span&gt;&lt;span style=&quot;color: Gray;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #00008b;&quot;&gt;version&lt;/span&gt;&lt;span style=&quot;color: Gray;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #8b0000;&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: Red;&quot;&gt;1.0&lt;/span&gt;&lt;span style=&quot;color: #8b0000;&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: Gray;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #00008b;&quot;&gt;encoding&lt;/span&gt;&lt;span style=&quot;color: Gray;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #8b0000;&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: Red;&quot;&gt;utf-8&lt;/span&gt;&lt;span style=&quot;color: #8b0000;&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: Olive;&quot;&gt;?&amp;gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;color: Olive;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: Green;&quot;&gt;mx:Application&lt;/span&gt;&lt;span style=&quot;color: Gray;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #00008b;&quot;&gt;xmlns:mx&lt;/span&gt;&lt;span style=&quot;color: Gray;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #8b0000;&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: Red;&quot;&gt;http://www.adobe.com/2006/mxml&lt;/span&gt;&lt;span style=&quot;color: #8b0000;&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: Gray;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #00008b;&quot;&gt;layout&lt;/span&gt;&lt;span style=&quot;color: Gray;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #8b0000;&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: Red;&quot;&gt;vertical&lt;/span&gt;&lt;span style=&quot;color: #8b0000;&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: Gray;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #00008b;&quot;&gt;verticalAlign&lt;/span&gt;&lt;span style=&quot;color: Gray;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #8b0000;&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: Red;&quot;&gt;middle&lt;/span&gt;&lt;span style=&quot;color: #8b0000;&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: Gray;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #00008b;&quot;&gt;backgroundColor&lt;/span&gt;&lt;span style=&quot;color: Gray;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #8b0000;&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: Red;&quot;&gt;white&lt;/span&gt;&lt;span style=&quot;color: #8b0000;&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: Olive;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;color: Gray;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;color: Gray;&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: Olive;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: Green;&quot;&gt;mx:Script&lt;/span&gt;&lt;span style=&quot;color: Olive;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;color: Gray;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #ffa500;&quot;&gt;&amp;lt;![CDATA[&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;color: #ffa500;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; import mx.events.CuePointEvent;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;color: #ffa500;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; import mx.collections.ArrayCollection;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;color: #ffa500;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;color: #ffa500;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [Bindable]&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;color: #ffa500;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; private var arrColl:ArrayCollection = new ArrayCollection();&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;color: #ffa500;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;color: #ffa500;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; private function copyBitmap(source:DisplayObject):Bitmap {&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;color: #ffa500;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; var bmd:BitmapData = new BitmapData(source.width, source.height);&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;color: #ffa500;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; bmd.draw(source);&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;color: #ffa500;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return new Bitmap(bmd);&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;color: #ffa500;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;color: #ffa500;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;color: #ffa500;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; private function videoDisplay_cuePoint(evt:CuePointEvent):void {&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;color: #ffa500;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; var bm:Bitmap = copyBitmap(evt.currentTarget as DisplayObject);&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;color: #ffa500;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; arrColl.addItem({bitmap:bm, cuePointName:evt.cuePointName, cuePointTime:evt.cuePointTime, cuePointType:evt.cuePointType});&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;color: #ffa500;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;color: #ffa500;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ]]&amp;gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;color: Gray;&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: Olive;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: Green;&quot;&gt;mx:Script&lt;/span&gt;&lt;span style=&quot;color: Olive;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;color: Gray;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;color: Gray;&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: Olive;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: Green;&quot;&gt;mx:Panel&lt;/span&gt;&lt;span style=&quot;color: Gray;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #00008b;&quot;&gt;id&lt;/span&gt;&lt;span style=&quot;color: Gray;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #8b0000;&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: Red;&quot;&gt;panel&lt;/span&gt;&lt;span style=&quot;color: #8b0000;&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: Gray;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #00008b;&quot;&gt;layout&lt;/span&gt;&lt;span style=&quot;color: Gray;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #8b0000;&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: Red;&quot;&gt;horizontal&lt;/span&gt;&lt;span style=&quot;color: #8b0000;&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: Olive;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;color: Gray;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: Olive;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: Green;&quot;&gt;mx:HBox&lt;/span&gt;&lt;span style=&quot;color: Gray;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #00008b;&quot;&gt;paddingLeft&lt;/span&gt;&lt;span style=&quot;color: Gray;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #8b0000;&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: Red;&quot;&gt;5&lt;/span&gt;&lt;span style=&quot;color: #8b0000;&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: Gray;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #00008b;&quot;&gt;paddingRight&lt;/span&gt;&lt;span style=&quot;color: Gray;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #8b0000;&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: Red;&quot;&gt;5&lt;/span&gt;&lt;span style=&quot;color: #8b0000;&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: Gray;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #00008b;&quot;&gt;paddingTop&lt;/span&gt;&lt;span style=&quot;color: Gray;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #8b0000;&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: Red;&quot;&gt;5&lt;/span&gt;&lt;span style=&quot;color: #8b0000;&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: Gray;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #00008b;&quot;&gt;paddingBottom&lt;/span&gt;&lt;span style=&quot;color: Gray;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #8b0000;&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: Red;&quot;&gt;5&lt;/span&gt;&lt;span style=&quot;color: #8b0000;&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: Gray;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #00008b;&quot;&gt;backgroundColor&lt;/span&gt;&lt;span style=&quot;color: Gray;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #8b0000;&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: Red;&quot;&gt;black&lt;/span&gt;&lt;span style=&quot;color: #8b0000;&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: Olive;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;color: Gray;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: Olive;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: Green;&quot;&gt;mx:VideoDisplay&lt;/span&gt;&lt;span style=&quot;color: Gray;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #00008b;&quot;&gt;id&lt;/span&gt;&lt;span style=&quot;color: Gray;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #8b0000;&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: Red;&quot;&gt;videoDisplay&lt;/span&gt;&lt;span style=&quot;color: #8b0000;&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: Gray;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #00008b;&quot;&gt;source&lt;/span&gt;&lt;span style=&quot;color: Gray;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #8b0000;&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: Red;&quot;&gt;http://www.helpexamples.com/flash/video/cuepoints.flv&lt;/span&gt;&lt;span style=&quot;color: #8b0000;&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: Gray;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #00008b;&quot;&gt;cuePoint&lt;/span&gt;&lt;span style=&quot;color: Gray;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #8b0000;&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: Red;&quot;&gt;videoDisplay_cuePoint(event)&lt;/span&gt;&lt;span style=&quot;color: #8b0000;&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: Gray;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #00008b;&quot;&gt;top&lt;/span&gt;&lt;span style=&quot;color: Gray;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #8b0000;&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: Red;&quot;&gt;5&lt;/span&gt;&lt;span style=&quot;color: #8b0000;&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: Gray;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: Olive;&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;color: Gray;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: Olive;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: Green;&quot;&gt;mx:HBox&lt;/span&gt;&lt;span style=&quot;color: Olive;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;color: Gray;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;color: Gray;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: Olive;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: Green;&quot;&gt;mx:TileList&lt;/span&gt;&lt;span style=&quot;color: Gray;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #00008b;&quot;&gt;id&lt;/span&gt;&lt;span style=&quot;color: Gray;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #8b0000;&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: Red;&quot;&gt;tileList&lt;/span&gt;&lt;span style=&quot;color: #8b0000;&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: Gray;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #00008b;&quot;&gt;columnCount&lt;/span&gt;&lt;span style=&quot;color: Gray;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #8b0000;&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: Red;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #8b0000;&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: Gray;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #00008b;&quot;&gt;dataProvider&lt;/span&gt;&lt;span style=&quot;color: Gray;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #8b0000;&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: Red;&quot;&gt;{arrColl}&lt;/span&gt;&lt;span style=&quot;color: #8b0000;&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: Gray;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #00008b;&quot;&gt;width&lt;/span&gt;&lt;span style=&quot;color: Gray;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #8b0000;&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: Red;&quot;&gt;{videoDisplay.width}&lt;/span&gt;&lt;span style=&quot;color: #8b0000;&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: Gray;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #00008b;&quot;&gt;height&lt;/span&gt;&lt;span style=&quot;color: Gray;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #8b0000;&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: Red;&quot;&gt;{videoDisplay.height + 10}&lt;/span&gt;&lt;span style=&quot;color: #8b0000;&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: Gray;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #00008b;&quot;&gt;verticalScrollPolicy&lt;/span&gt;&lt;span style=&quot;color: Gray;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #8b0000;&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: Red;&quot;&gt;on&lt;/span&gt;&lt;span style=&quot;color: #8b0000;&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: Olive;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;color: Gray;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: Olive;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: Green;&quot;&gt;mx:itemRenderer&lt;/span&gt;&lt;span style=&quot;color: Olive;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;color: Gray;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: Olive;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: Green;&quot;&gt;mx:Component&lt;/span&gt;&lt;span style=&quot;color: Olive;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;color: Gray;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: Olive;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: Green;&quot;&gt;mx:HBox&lt;/span&gt;&lt;span style=&quot;color: Gray;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #00008b;&quot;&gt;paddingBottom&lt;/span&gt;&lt;span style=&quot;color: Gray;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #8b0000;&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: Red;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #8b0000;&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: Gray;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #00008b;&quot;&gt;paddingTop&lt;/span&gt;&lt;span style=&quot;color: Gray;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #8b0000;&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: Red;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #8b0000;&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: Olive;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;color: Gray;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: Olive;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: Green;&quot;&gt;mx:Image&lt;/span&gt;&lt;span style=&quot;color: Gray;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #00008b;&quot;&gt;source&lt;/span&gt;&lt;span style=&quot;color: Gray;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #8b0000;&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: Red;&quot;&gt;{data.bitmap}&lt;/span&gt;&lt;span style=&quot;color: #8b0000;&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: Gray;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #00008b;&quot;&gt;toolTip&lt;/span&gt;&lt;span style=&quot;color: Gray;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #8b0000;&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: Red;&quot;&gt;{data.cuePointTime}&lt;/span&gt;&lt;span style=&quot;color: #8b0000;&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: Gray;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #00008b;&quot;&gt;maintainAspectRatio&lt;/span&gt;&lt;span style=&quot;color: Gray;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #8b0000;&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: Red;&quot;&gt;true&lt;/span&gt;&lt;span style=&quot;color: #8b0000;&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: Gray;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #00008b;&quot;&gt;scaleX&lt;/span&gt;&lt;span style=&quot;color: Gray;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #8b0000;&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: Red;&quot;&gt;0.5&lt;/span&gt;&lt;span style=&quot;color: #8b0000;&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: Gray;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #00008b;&quot;&gt;scaleY&lt;/span&gt;&lt;span style=&quot;color: Gray;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #8b0000;&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: Red;&quot;&gt;0.5&lt;/span&gt;&lt;span style=&quot;color: #8b0000;&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: Gray;&quot;&gt; &lt;/span&gt;&lt;span sty