<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.2.1" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Comments on: Setting the text roll over color on a ComboBox control in Flex</title>
	<link>http://blog.flexexamples.com/2008/07/14/setting-the-text-roll-over-color-on-a-combobox-control-in-flex/</link>
	<description>A bunch of examples for Adobe Flex and ActionScript</description>
	<pubDate>Sat, 22 Nov 2008 06:11:15 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.2.1</generator>

	<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-14467</link>
		<author>Ben</author>
		<pubDate>Mon, 04 Aug 2008 16:37:27 +0000</pubDate>
		<guid>http://blog.flexexamples.com/2008/07/14/setting-the-text-roll-over-color-on-a-combobox-control-in-flex/#comment-14467</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'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'd also like to add thank you for running and maintaining this site.  I'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-14441</link>
		<author>peterd</author>
		<pubDate>Sat, 02 Aug 2008 00:45:23 +0000</pubDate>
		<guid>http://blog.flexexamples.com/2008/07/14/setting-the-text-roll-over-color-on-a-combobox-control-in-flex/#comment-14441</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-14439</link>
		<author>peterd</author>
		<pubDate>Sat, 02 Aug 2008 00:27:33 +0000</pubDate>
		<guid>http://blog.flexexamples.com/2008/07/14/setting-the-text-roll-over-color-on-a-combobox-control-in-flex/#comment-14439</guid>
		<description>Ben,

Off the top of my head I'd say you may need a custom skin. Looking at the API I don't see an easy way to override the arrow icon. The easiest way is probably to download the &lt;a href="https://www.adobe.com/cfusion/entitlement/index.cfm?e=flex_skins" rel="nofollow"&gt;&lt;u&gt;"Flex Skin Design Extension for Flash"&lt;/u&gt;&lt;/a&gt; and create a new skin by going "File &#62; New", select the "Templates" tab and "Flex Skins" category, and finally select the ComboBox template. For each of the four states, select the down arrow and then select "Modify &#62; Transform &#62; Flip Vertical". 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="code"&gt;
&#60;mx:Style&#62;
    ComboBox {
        skin: Embed(skinClass="ComboBox_skin");
    }
&#60;/mx:Style&#62;
&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'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>
	<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-14437</link>
		<author>Ben</author>
		<pubDate>Fri, 01 Aug 2008 21:29:20 +0000</pubDate>
		<guid>http://blog.flexexamples.com/2008/07/14/setting-the-text-roll-over-color-on-a-combobox-control-in-flex/#comment-14437</guid>
		<description>Hey Peter,

Do you have any idea how I might go around changing the direction the arrow points on the combobox?  I wanted the arrow to point upwards because on my application the ComboBox is actually popping upwards so I feel like it's only appropriate to have the arrow point upwards.

Thanks,
Ben</description>
		<content:encoded><![CDATA[<p>Hey Peter,</p>
<p>Do you have any idea how I might go around changing the direction the arrow points on the combobox?  I wanted the arrow to point upwards because on my application the ComboBox is actually popping upwards so I feel like it&#8217;s only appropriate to have the arrow point upwards.</p>
<p>Thanks,<br />
Ben</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Erik</title>
		<link>http://blog.flexexamples.com/2008/07/14/setting-the-text-roll-over-color-on-a-combobox-control-in-flex/#comment-14215</link>
		<author>Erik</author>
		<pubDate>Fri, 18 Jul 2008 08:27:27 +0000</pubDate>
		<guid>http://blog.flexexamples.com/2008/07/14/setting-the-text-roll-over-color-on-a-combobox-control-in-flex/#comment-14215</guid>
		<description>Thanks for your input Peterd, the fact that I'm going to make the whole design skin based makes me not want to make anything skinbased right now. Butt I will make a try at writing on FlexCoders.

Thanks again for you help!:)</description>
		<content:encoded><![CDATA[<p>Thanks for your input Peterd, the fact that I&#8217;m going to make the whole design skin based makes me not want to make anything skinbased right now. Butt I will make a try at writing on FlexCoders.</p>
<p>Thanks again for you help!:)</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-14214</link>
		<author>peterd</author>
		<pubDate>Fri, 18 Jul 2008 06:46:34 +0000</pubDate>
		<guid>http://blog.flexexamples.com/2008/07/14/setting-the-text-roll-over-color-on-a-combobox-control-in-flex/#comment-14214</guid>
		<description>Erik,

As far as I know, you can't remove just the borders and the line using just CSS. But I could very well be wrong. You could try asking on FlexCoders and see if anybody knows of a solution.
Otherwise I think you have to use Flash or some other application to create a graphical skin.

In fact, I seem to recall that somewhere on the Adobe site is a bunch of Flex skin templates for the various controls/containers. It may be as simple as creating a new skin from the ComboBox template, removing whatever lines you don't want, publishing a SWC, and then setting the &lt;code&gt;skin&lt;/code&gt; style in Flex.

Peter</description>
		<content:encoded><![CDATA[<p>Erik,</p>
<p>As far as I know, you can&#8217;t remove just the borders and the line using just CSS. But I could very well be wrong. You could try asking on FlexCoders and see if anybody knows of a solution.<br />
Otherwise I think you have to use Flash or some other application to create a graphical skin.</p>
<p>In fact, I seem to recall that somewhere on the Adobe site is a bunch of Flex skin templates for the various controls/containers. It may be as simple as creating a new skin from the ComboBox template, removing whatever lines you don&#8217;t want, publishing a SWC, and then setting the <code>skin</code> style in Flex.</p>
<p>Peter</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Erik</title>
		<link>http://blog.flexexamples.com/2008/07/14/setting-the-text-roll-over-color-on-a-combobox-control-in-flex/#comment-14213</link>
		<author>Erik</author>
		<pubDate>Fri, 18 Jul 2008 06:33:11 +0000</pubDate>
		<guid>http://blog.flexexamples.com/2008/07/14/setting-the-text-roll-over-color-on-a-combobox-control-in-flex/#comment-14213</guid>
		<description>This isn't possible only with css modifications? I'm going to make the whole design with skining but for the first release I dont have the time to.

anyway is it posible to remove the borders or set the border color the same as the bakground color in css?</description>
		<content:encoded><![CDATA[<p>This isn&#8217;t possible only with css modifications? I&#8217;m going to make the whole design with skining but for the first release I dont have the time to.</p>
<p>anyway is it posible to remove the borders or set the border color the same as the bakground color in css?</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-14204</link>
		<author>peterd</author>
		<pubDate>Thu, 17 Jul 2008 16:46:33 +0000</pubDate>
		<guid>http://blog.flexexamples.com/2008/07/14/setting-the-text-roll-over-color-on-a-combobox-control-in-flex/#comment-14204</guid>
		<description>Erik,

Yes, it's possible. You'd need to make a new skin graphic/asset in Photoshop/Fireworks/Flash and then set the &lt;code&gt;skin&lt;/code&gt; style on the ComboBox.

Peter</description>
		<content:encoded><![CDATA[<p>Erik,</p>
<p>Yes, it&#8217;s possible. You&#8217;d need to make a new skin graphic/asset in Photoshop/Fireworks/Flash and then set the <code>skin</code> style on the ComboBox.</p>
<p>Peter</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Erik</title>
		<link>http://blog.flexexamples.com/2008/07/14/setting-the-text-roll-over-color-on-a-combobox-control-in-flex/#comment-14203</link>
		<author>Erik</author>
		<pubDate>Thu, 17 Jul 2008 14:40:18 +0000</pubDate>
		<guid>http://blog.flexexamples.com/2008/07/14/setting-the-text-roll-over-color-on-a-combobox-control-in-flex/#comment-14203</guid>
		<description>Just one more thing I want the borders in the same color, and the line between the arrow and the text removed =) Is this posible?</description>
		<content:encoded><![CDATA[<p>Just one more thing I want the borders in the same color, and the line between the arrow and the text removed =) Is this posible?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Erik</title>
		<link>http://blog.flexexamples.com/2008/07/14/setting-the-text-roll-over-color-on-a-combobox-control-in-flex/#comment-14202</link>
		<author>Erik</author>
		<pubDate>Thu, 17 Jul 2008 14:38:14 +0000</pubDate>
		<guid>http://blog.flexexamples.com/2008/07/14/setting-the-text-roll-over-color-on-a-combobox-control-in-flex/#comment-14202</guid>
		<description>Yes, Peterd Thank you so much!!! :)</description>
		<content:encoded><![CDATA[<p>Yes, Peterd Thank you so much!!! :)</p>
]]></content:encoded>
	</item>
</channel>
</rss>
