<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Setting the text roll over color on a ComboBox control in Flex</title>
	<atom:link href="http://blog.flexexamples.com/2008/07/14/setting-the-text-roll-over-color-on-a-combobox-control-in-flex/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.flexexamples.com/2008/07/14/setting-the-text-roll-over-color-on-a-combobox-control-in-flex/</link>
	<description>Just a bunch of Adobe Flex Examples</description>
	<lastBuildDate>Sun, 12 Feb 2012 19:26:49 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Arkady</title>
		<link>http://blog.flexexamples.com/2008/07/14/setting-the-text-roll-over-color-on-a-combobox-control-in-flex/comment-page-1/#comment-7706</link>
		<dc:creator>Arkady</dc:creator>
		<pubDate>Fri, 14 May 2010 15:40:03 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2008/07/14/setting-the-text-roll-over-color-on-a-combobox-control-in-flex/#comment-7706</guid>
		<description>Good day Peter,

thanks for your examples!

How would i create a combobox or dropdown list to fall down same slowly - slider effect and not just drop down as default. Can not find no info bout it in network. Would be very thankful if you could explain - how its done?

Thanks!</description>
		<content:encoded><![CDATA[<p>Good day Peter,</p>
<p>thanks for your examples!</p>
<p>How would i create a combobox or dropdown list to fall down same slowly &#8211; slider effect and not just drop down as default. Can not find no info bout it in network. Would be very thankful if you could explain &#8211; how its done?</p>
<p>Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Peter deHaan</title>
		<link>http://blog.flexexamples.com/2008/07/14/setting-the-text-roll-over-color-on-a-combobox-control-in-flex/comment-page-1/#comment-7699</link>
		<dc:creator>Peter deHaan</dc:creator>
		<pubDate>Fri, 14 May 2010 00:07:45 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2008/07/14/setting-the-text-roll-over-color-on-a-combobox-control-in-flex/#comment-7699</guid>
		<description>Posted a full Flex 4 example at &lt;a href=&quot;http://blog.flexexamples.com/2010/05/13/setting-the-text-roll-over-color-on-a-spark-dropdownlist-control-in-flex-4/&quot; rel=&quot;nofollow&quot;&gt;&quot;Setting the text roll over color on a Spark DropDownList control in Flex 4&quot;&lt;/a&gt;.

Peter</description>
		<content:encoded><![CDATA[<p>Posted a full Flex 4 example at <a href="http://blog.flexexamples.com/2010/05/13/setting-the-text-roll-over-color-on-a-spark-dropdownlist-control-in-flex-4/" rel="nofollow">&#8220;Setting the text roll over color on a Spark DropDownList control in Flex 4&#8243;</a>.</p>
<p>Peter</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Peter deHaan</title>
		<link>http://blog.flexexamples.com/2008/07/14/setting-the-text-roll-over-color-on-a-combobox-control-in-flex/comment-page-1/#comment-7677</link>
		<dc:creator>Peter deHaan</dc:creator>
		<pubDate>Tue, 11 May 2010 05:35:11 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2008/07/14/setting-the-text-roll-over-color-on-a-combobox-control-in-flex/#comment-7677</guid>
		<description>@Jeremy,

You could create a custom item renderer and override the color in the &lt;code&gt;hovered&lt;/code&gt; and/or &lt;code&gt;selected&lt;/code&gt; state, as seen in the following example:
&lt;pre lang=&quot;mxml&quot;&gt;
&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
&lt;s:Application xmlns:fx=&quot;http://ns.adobe.com/mxml/2009&quot;
        xmlns:s=&quot;library://ns.adobe.com/flex/spark&quot;
        xmlns:mx=&quot;library://ns.adobe.com/flex/mx&quot;&gt;
    
    &lt;s:DropDownList id=&quot;ddl&quot;
            itemRenderer=&quot;skins.SparkItemRenderer&quot;
            selectionColor=&quot;black&quot;
            requireSelection=&quot;true&quot;
            selectedIndex=&quot;0&quot;
            horizontalCenter=&quot;0&quot; top=&quot;20&quot;&gt;
        &lt;s:dataProvider&gt;
            &lt;s:ArrayList source=&quot;[One,Two,Three,Four,Five,Six,Seven,Eight,Nine]&quot; /&gt;
        &lt;/s:dataProvider&gt;
    &lt;/s:DropDownList&gt;
    
&lt;/s:Application&gt;
&lt;/pre&gt;

And the custom item renderer, &lt;em&gt;skins/SparkItemRenderer.mxml&lt;/em&gt;, is as follows:
&lt;pre lang=&quot;mxml&quot;&gt;
&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
&lt;s:ItemRenderer xmlns:fx=&quot;http://ns.adobe.com/mxml/2009&quot; 
                xmlns:s=&quot;library://ns.adobe.com/flex/spark&quot; 
                xmlns:mx=&quot;library://ns.adobe.com/flex/mx&quot; 
                autoDrawBackground=&quot;true&quot;&gt;
    &lt;s:states&gt;
        &lt;s:State name=&quot;normal&quot; /&gt;
        &lt;s:State name=&quot;hovered&quot; /&gt;
        &lt;s:State name=&quot;selected&quot; /&gt;
    &lt;/s:states&gt;
    
    &lt;s:Label id=&quot;labelDisplay&quot;
             color=&quot;black&quot; color.selected=&quot;white&quot;
             left=&quot;3&quot; right=&quot;3&quot; top=&quot;4&quot; bottom=&quot;3&quot; /&gt;
    
&lt;/s:ItemRenderer&gt;
&lt;/pre&gt;

Peter</description>
		<content:encoded><![CDATA[<p>@Jeremy,</p>
<p>You could create a custom item renderer and override the color in the <code>hovered</code> and/or <code>selected</code> state, as seen in the following example:</p>

<div class="wp_syntax"><div class="code"><pre class="mxml" style="font-family:monospace;"><span style="color: #000000;">&lt;?xml version=<span style="color: #ff0000;">&quot;1.0&quot;</span> encoding=<span style="color: #ff0000;">&quot;utf-8&quot;</span>?<span style="color: #7400FF;">&gt;</span></span>
<span style="color: #000000;"><span style="color: #7400FF;">&lt;s:Application</span> xmlns:fx=<span style="color: #ff0000;">&quot;http://ns.adobe.com/mxml/2009&quot;</span></span>
<span style="color: #000000;">        xmlns:s=<span style="color: #ff0000;">&quot;library://ns.adobe.com/flex/spark&quot;</span></span>
<span style="color: #000000;">        xmlns:mx=<span style="color: #ff0000;">&quot;library://ns.adobe.com/flex/mx&quot;</span><span style="color: #7400FF;">&gt;</span></span>
&nbsp;
    <span style="color: #000000;"><span style="color: #7400FF;">&lt;s:DropDownList</span> id=<span style="color: #ff0000;">&quot;ddl&quot;</span></span>
<span style="color: #000000;">            itemRenderer=<span style="color: #ff0000;">&quot;skins.SparkItemRenderer&quot;</span></span>
<span style="color: #000000;">            selectionColor=<span style="color: #ff0000;">&quot;black&quot;</span></span>
<span style="color: #000000;">            requireSelection=<span style="color: #ff0000;">&quot;true&quot;</span></span>
<span style="color: #000000;">            selectedIndex=<span style="color: #ff0000;">&quot;0&quot;</span></span>
<span style="color: #000000;">            horizontalCenter=<span style="color: #ff0000;">&quot;0&quot;</span> top=<span style="color: #ff0000;">&quot;20&quot;</span><span style="color: #7400FF;">&gt;</span></span>
        <span style="color: #000000;"><span style="color: #7400FF;">&lt;s:dataProvider</span><span style="color: #7400FF;">&gt;</span></span>
            <span style="color: #000000;"><span style="color: #7400FF;">&lt;s:ArrayList</span> source=<span style="color: #ff0000;">&quot;[One,Two,Three,Four,Five,Six,Seven,Eight,Nine]&quot;</span> <span style="color: #7400FF;">/&gt;</span></span>
        <span style="color: #000000;"><span style="color: #7400FF;">&lt;/s:dataProvider</span><span style="color: #7400FF;">&gt;</span></span>
    <span style="color: #000000;"><span style="color: #7400FF;">&lt;/s:DropDownList</span><span style="color: #7400FF;">&gt;</span></span>
&nbsp;
<span style="color: #000000;"><span style="color: #7400FF;">&lt;/s:Application</span><span style="color: #7400FF;">&gt;</span></span></pre></div></div>

<p>And the custom item renderer, <em>skins/SparkItemRenderer.mxml</em>, is as follows:</p>

<div class="wp_syntax"><div class="code"><pre class="mxml" style="font-family:monospace;"><span style="color: #000000;">&lt;?xml version=<span style="color: #ff0000;">&quot;1.0&quot;</span> encoding=<span style="color: #ff0000;">&quot;utf-8&quot;</span>?<span style="color: #7400FF;">&gt;</span></span>
<span style="color: #000000;"><span style="color: #7400FF;">&lt;s:ItemRenderer</span> xmlns:fx=<span style="color: #ff0000;">&quot;http://ns.adobe.com/mxml/2009&quot;</span> </span>
<span style="color: #000000;">                xmlns:s=<span style="color: #ff0000;">&quot;library://ns.adobe.com/flex/spark&quot;</span> </span>
<span style="color: #000000;">                xmlns:mx=<span style="color: #ff0000;">&quot;library://ns.adobe.com/flex/mx&quot;</span> </span>
<span style="color: #000000;">                autoDrawBackground=<span style="color: #ff0000;">&quot;true&quot;</span><span style="color: #7400FF;">&gt;</span></span>
    <span style="color: #000000;"><span style="color: #7400FF;">&lt;s:states</span><span style="color: #7400FF;">&gt;</span></span>
        <span style="color: #000000;"><span style="color: #7400FF;">&lt;s:State</span> name=<span style="color: #ff0000;">&quot;normal&quot;</span> <span style="color: #7400FF;">/&gt;</span></span>
        <span style="color: #000000;"><span style="color: #7400FF;">&lt;s:State</span> name=<span style="color: #ff0000;">&quot;hovered&quot;</span> <span style="color: #7400FF;">/&gt;</span></span>
        <span style="color: #000000;"><span style="color: #7400FF;">&lt;s:State</span> name=<span style="color: #ff0000;">&quot;selected&quot;</span> <span style="color: #7400FF;">/&gt;</span></span>
    <span style="color: #000000;"><span style="color: #7400FF;">&lt;/s:states</span><span style="color: #7400FF;">&gt;</span></span>
&nbsp;
    <span style="color: #000000;"><span style="color: #7400FF;">&lt;s:Label</span> id=<span style="color: #ff0000;">&quot;labelDisplay&quot;</span></span>
<span style="color: #000000;">             color=<span style="color: #ff0000;">&quot;black&quot;</span> color.selected=<span style="color: #ff0000;">&quot;white&quot;</span></span>
<span style="color: #000000;">             left=<span style="color: #ff0000;">&quot;3&quot;</span> right=<span style="color: #ff0000;">&quot;3&quot;</span> top=<span style="color: #ff0000;">&quot;4&quot;</span> bottom=<span style="color: #ff0000;">&quot;3&quot;</span> <span style="color: #7400FF;">/&gt;</span></span>
&nbsp;
<span style="color: #000000;"><span style="color: #7400FF;">&lt;/s:ItemRenderer</span><span style="color: #7400FF;">&gt;</span></span></pre></div></div>

<p>Peter</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jeremy</title>
		<link>http://blog.flexexamples.com/2008/07/14/setting-the-text-roll-over-color-on-a-combobox-control-in-flex/comment-page-1/#comment-7675</link>
		<dc:creator>Jeremy</dc:creator>
		<pubDate>Tue, 11 May 2010 05:16:18 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2008/07/14/setting-the-text-roll-over-color-on-a-combobox-control-in-flex/#comment-7675</guid>
		<description>Hi Peter ~
Is there a way to do this in Flex 4?  Seems the textRollOverColor style is not available for the Spark version of the comboBox component (s&#124;ComboBox).

Thanks.
Jeremy</description>
		<content:encoded><![CDATA[<p>Hi Peter ~<br />
Is there a way to do this in Flex 4?  Seems the textRollOverColor style is not available for the Spark version of the comboBox component (s|ComboBox).</p>
<p>Thanks.<br />
Jeremy</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Curtis Aube</title>
		<link>http://blog.flexexamples.com/2008/07/14/setting-the-text-roll-over-color-on-a-combobox-control-in-flex/comment-page-1/#comment-7409</link>
		<dc:creator>Curtis Aube</dc:creator>
		<pubDate>Thu, 01 Apr 2010 12:54:42 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2008/07/14/setting-the-text-roll-over-color-on-a-combobox-control-in-flex/#comment-7409</guid>
		<description>Create a custom comboBox that extends comboBox. Add an event listener for mouseOver and mouseOut. In the mouseOverHandler, set the color style of the textInput to rollOverColor. In the mouseOutHandler, set the color style of the textInput back to the color style. Also make sure to initially set the mouseEnabled and mouseChildren on the textInput to false, so that you don&#039;t get any strange blinking during rollOver.

Now when you set the rollOverColor style on your custom combobox, it will work the way you expect.

Curtis</description>
		<content:encoded><![CDATA[<p>Create a custom comboBox that extends comboBox. Add an event listener for mouseOver and mouseOut. In the mouseOverHandler, set the color style of the textInput to rollOverColor. In the mouseOutHandler, set the color style of the textInput back to the color style. Also make sure to initially set the mouseEnabled and mouseChildren on the textInput to false, so that you don&#8217;t get any strange blinking during rollOver.</p>
<p>Now when you set the rollOverColor style on your custom combobox, it will work the way you expect.</p>
<p>Curtis</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anonymous</title>
		<link>http://blog.flexexamples.com/2008/07/14/setting-the-text-roll-over-color-on-a-combobox-control-in-flex/comment-page-1/#comment-7278</link>
		<dc:creator>Anonymous</dc:creator>
		<pubDate>Wed, 17 Mar 2010 12:51:14 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2008/07/14/setting-the-text-roll-over-color-on-a-combobox-control-in-flex/#comment-7278</guid>
		<description>Hi John!
Did you find a solution? Cause I&#039;m kinda looking for something similar.
Regards,

BS_C3</description>
		<content:encoded><![CDATA[<p>Hi John!<br />
Did you find a solution? Cause I&#8217;m kinda looking for something similar.<br />
Regards,</p>
<p>BS_C3</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John Isaacks</title>
		<link>http://blog.flexexamples.com/2008/07/14/setting-the-text-roll-over-color-on-a-combobox-control-in-flex/comment-page-1/#comment-3468</link>
		<dc:creator>John Isaacks</dc:creator>
		<pubDate>Thu, 14 May 2009 20:40:28 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2008/07/14/setting-the-text-roll-over-color-on-a-combobox-control-in-flex/#comment-3468</guid>
		<description>Is there a way to change the roll over text color for the main part of the combo-box not the drop down part? I need the text to change colors because the different skins I am using needs different color text to be readable up/over. I would actually like a global setting as I have the same issue with buttons and other similar components.

Thanks!</description>
		<content:encoded><![CDATA[<p>Is there a way to change the roll over text color for the main part of the combo-box not the drop down part? I need the text to change colors because the different skins I am using needs different color text to be readable up/over. I would actually like a global setting as I have the same issue with buttons and other similar components.</p>
<p>Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ben</title>
		<link>http://blog.flexexamples.com/2008/07/14/setting-the-text-roll-over-color-on-a-combobox-control-in-flex/comment-page-1/#comment-3459</link>
		<dc:creator>Ben</dc:creator>
		<pubDate>Mon, 04 Aug 2008 16:37:27 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2008/07/14/setting-the-text-roll-over-color-on-a-combobox-control-in-flex/#comment-3459</guid>
		<description>Thanks a bunch, Peter

That was really helpful.  Yea when I was looking into it on Friday I realized that it might have been a skinning issue but I haven&#039;t dealt with skins at all and was having a tough time looking at how to do skinning.  Thanks both for your bug submission/change for me and also for the tip on the skin design extension for flash.  Very helpful.  I&#039;d also like to add thank you for running and maintaining this site.  I&#039;ve been using flash for years but just recently started using Flex for my job and this site has been extremely helpful.  Keep up the good work!

Thanks again,
Ben</description>
		<content:encoded><![CDATA[<p>Thanks a bunch, Peter</p>
<p>That was really helpful.  Yea when I was looking into it on Friday I realized that it might have been a skinning issue but I haven&#8217;t dealt with skins at all and was having a tough time looking at how to do skinning.  Thanks both for your bug submission/change for me and also for the tip on the skin design extension for flash.  Very helpful.  I&#8217;d also like to add thank you for running and maintaining this site.  I&#8217;ve been using flash for years but just recently started using Flex for my job and this site has been extremely helpful.  Keep up the good work!</p>
<p>Thanks again,<br />
Ben</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: peterd</title>
		<link>http://blog.flexexamples.com/2008/07/14/setting-the-text-roll-over-color-on-a-combobox-control-in-flex/comment-page-1/#comment-3469</link>
		<dc:creator>peterd</dc:creator>
		<pubDate>Sat, 02 Aug 2008 00:45:23 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2008/07/14/setting-the-text-roll-over-color-on-a-combobox-control-in-flex/#comment-3469</guid>
		<description>I filed a bug at http://bugs.adobe.com/jira/browse/SDK-16350 and you can grab my source files from there.

Peter</description>
		<content:encoded><![CDATA[<p>I filed a bug at <a href="http://bugs.adobe.com/jira/browse/SDK-16350" rel="nofollow">http://bugs.adobe.com/jira/browse/SDK-16350</a> and you can grab my source files from there.</p>
<p>Peter</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: peterd</title>
		<link>http://blog.flexexamples.com/2008/07/14/setting-the-text-roll-over-color-on-a-combobox-control-in-flex/comment-page-1/#comment-3471</link>
		<dc:creator>peterd</dc:creator>
		<pubDate>Sat, 02 Aug 2008 00:27:33 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2008/07/14/setting-the-text-roll-over-color-on-a-combobox-control-in-flex/#comment-3471</guid>
		<description>Ben,

Off the top of my head I&#039;d say you may need a custom skin. Looking at the API I don&#039;t see an easy way to override the arrow icon. The easiest way is probably to download the &lt;a href=&quot;https://www.adobe.com/cfusion/entitlement/index.cfm?e=flex_skins&quot; rel=&quot;nofollow&quot;&gt;&lt;u&gt;&quot;Flex Skin Design Extension for Flash&quot;&lt;/u&gt;&lt;/a&gt; and create a new skin by going &quot;File &gt; New&quot;, select the &quot;Templates&quot; tab and &quot;Flex Skins&quot; category, and finally select the ComboBox template. For each of the four states, select the down arrow and then select &quot;Modify &gt; Transform &gt; Flip Vertical&quot;. Save and publish the .FLA to generate the .SWC and .SWF file (the .SWC and .SWF will be located in the same directory as your .FLA.)

Next, in Flex Builder, copy the .SWC file into the /libs/ folder and add this code to the .MXML file:
&lt;pre class=&quot;code&quot;&gt;
&lt;mx:Style&gt;
    ComboBox {
        skin: Embed(skinClass=&quot;ComboBox_skin&quot;);
    }
&lt;/mx:Style&gt;
&lt;/pre&gt;

Finally, save and run your Flex application and with any luck, you should see the arrow icons pointing upwards.

There may be a much easier way that I&#039;m not seeing at first glance. You may want to try asking on the FlexCoders list, or even filing an enhancement request in the Flex bug base at http://bugs.adobe.com/flex/.

Peter</description>
		<content:encoded><![CDATA[<p>Ben,</p>
<p>Off the top of my head I&#8217;d say you may need a custom skin. Looking at the API I don&#8217;t see an easy way to override the arrow icon. The easiest way is probably to download the <a href="https://www.adobe.com/cfusion/entitlement/index.cfm?e=flex_skins" rel="nofollow"><u>&#8220;Flex Skin Design Extension for Flash&#8221;</u></a> and create a new skin by going &#8220;File &gt; New&#8221;, select the &#8220;Templates&#8221; tab and &#8220;Flex Skins&#8221; category, and finally select the ComboBox template. For each of the four states, select the down arrow and then select &#8220;Modify &gt; Transform &gt; Flip Vertical&#8221;. Save and publish the .FLA to generate the .SWC and .SWF file (the .SWC and .SWF will be located in the same directory as your .FLA.)</p>
<p>Next, in Flex Builder, copy the .SWC file into the /libs/ folder and add this code to the .MXML file:</p>
<pre class="code">
&lt;mx:Style&gt;
    ComboBox {
        skin: Embed(skinClass="ComboBox_skin");
    }
&lt;/mx:Style&gt;
</pre>
<p>Finally, save and run your Flex application and with any luck, you should see the arrow icons pointing upwards.</p>
<p>There may be a much easier way that I&#8217;m not seeing at first glance. You may want to try asking on the FlexCoders list, or even filing an enhancement request in the Flex bug base at <a href="http://bugs.adobe.com/flex/" rel="nofollow">http://bugs.adobe.com/flex/</a>.</p>
<p>Peter</p>
]]></content:encoded>
	</item>
</channel>
</rss>

