<?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"
	>
<channel>
	<title>Comments on: Custom PopUp Rating Component in Spark Flex 4 (Gumbo)</title>
	<atom:link href="http://www.hulstkamp.com/2009/07/09/custom-popup-rating-component-in-spark-flex-4-gumbo/464/feed" rel="self" type="application/rss+xml" />
	<link>http://www.hulstkamp.com/2009/07/09/custom-popup-rating-component-in-spark-flex-4-gumbo/464</link>
	<description>andy hulstkamp blog about rich internet applications, flex, flash, java, webapps, web, code, experiments</description>
	<pubDate>Tue, 07 Feb 2012 23:38:15 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.1</generator>
		<item>
		<title>By: Andy Hulstkamp</title>
		<link>http://www.hulstkamp.com/2009/07/09/custom-popup-rating-component-in-spark-flex-4-gumbo/464#comment-429</link>
		<dc:creator>Andy Hulstkamp</dc:creator>
		<pubDate>Thu, 27 Jan 2011 19:52:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.hulstkamp.com/?p=464#comment-429</guid>
		<description>Pierre

When you have 60 icons I'd rather colorize the filled elements instead of using a color transform.

You could recursively walk your fxg icons and check for filled elements and then colorize them. 

Something like this
Recursively seek for nested FilledElements and set the fill color to the current color

private function fillIconWithColor (el:IVisualElementContainer, color:uint):void {
              for (var i:int = 0; i &lt; el.numElements; i++) {
                  var elem:Object = el.getElementAt(i);
                  if (elem is IVisualElementContainer) {
                       fillIconWithColor (IVisualElementContainer(elem), color);
                  } else if (elem is FilledElement) {
                       var fill:IFill = FilledElement(elem).fill;
                       if (fill is SolidColor) {
                          SolidColor(fill).color = color;
                       }
                  }
               }
           }

hope this helps

sorry for the format. Check the source &lt;a href="http://www.hulstkamp.com/byard/flex4/AHGenericFxgIconButtonTest/AHFXGIconTest.html" rel="nofollow"&gt;here &lt;/a&gt;for an example.</description>
		<content:encoded><![CDATA[<p>Pierre</p>
<p>When you have 60 icons I&#8217;d rather colorize the filled elements instead of using a color transform.</p>
<p>You could recursively walk your fxg icons and check for filled elements and then colorize them. </p>
<p>Something like this<br />
Recursively seek for nested FilledElements and set the fill color to the current color</p>
<p>private function fillIconWithColor (el:IVisualElementContainer, color:uint):void {<br />
              for (var i:int = 0; i < el.numElements; i++) {<br />
                  var elem:Object = el.getElementAt(i);<br />
                  if (elem is IVisualElementContainer) {<br />
                       fillIconWithColor (IVisualElementContainer(elem), color);<br />
                  } else if (elem is FilledElement) {<br />
                       var fill:IFill = FilledElement(elem).fill;<br />
                       if (fill is SolidColor) {<br />
                          SolidColor(fill).color = color;<br />
                       }<br />
                  }<br />
               }<br />
           }</p>
<p>hope this helps</p>
<p>sorry for the format. Check the source <a href="http://www.hulstkamp.com/byard/flex4/AHGenericFxgIconButtonTest/AHFXGIconTest.html" rel="nofollow">here for an example.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Pierre</title>
		<link>http://www.hulstkamp.com/2009/07/09/custom-popup-rating-component-in-spark-flex-4-gumbo/464#comment-428</link>
		<dc:creator>Pierre</dc:creator>
		<pubDate>Thu, 27 Jan 2011 13:40:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.hulstkamp.com/?p=464#comment-428</guid>
		<description>Ah, never mind! I've used a Color Transform now. But I guess it would be cleaner to change the fill color directly!?</description>
		<content:encoded><![CDATA[<p>Ah, never mind! I&#8217;ve used a Color Transform now. But I guess it would be cleaner to change the fill color directly!?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Pierre</title>
		<link>http://www.hulstkamp.com/2009/07/09/custom-popup-rating-component-in-spark-flex-4-gumbo/464#comment-426</link>
		<dc:creator>Pierre</dc:creator>
		<pubDate>Thu, 27 Jan 2011 11:00:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.hulstkamp.com/?p=464#comment-426</guid>
		<description>Do you know if there is a way to change the fill-color of all pathes in a specific fxg icon? I want to make a Button with an icon on it and the text and the icon should be filled differently. You used multiply icons and masked them… but I have about 60 different icons and that would be a lot of memory space if I'd define 3 types for each icon.</description>
		<content:encoded><![CDATA[<p>Do you know if there is a way to change the fill-color of all pathes in a specific fxg icon? I want to make a Button with an icon on it and the text and the icon should be filled differently. You used multiply icons and masked them… but I have about 60 different icons and that would be a lot of memory space if I&#8217;d define 3 types for each icon.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Pierre</title>
		<link>http://www.hulstkamp.com/2009/07/09/custom-popup-rating-component-in-spark-flex-4-gumbo/464#comment-425</link>
		<dc:creator>Pierre</dc:creator>
		<pubDate>Thu, 27 Jan 2011 11:00:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.hulstkamp.com/?p=464#comment-425</guid>
		<description>Do you know if there is a way to change the fill-color of all pathes in a specific fxg icon? I want to make a Button with an icon on it and the text and the icon should be filled differently. You used multiply icons and masked them… but I have about 60 different icons and that would be a lot of memory space if I'd define 3 types for each icon.</description>
		<content:encoded><![CDATA[<p>Do you know if there is a way to change the fill-color of all pathes in a specific fxg icon? I want to make a Button with an icon on it and the text and the icon should be filled differently. You used multiply icons and masked them… but I have about 60 different icons and that would be a lot of memory space if I&#8217;d define 3 types for each icon.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andy Hulstkamp</title>
		<link>http://www.hulstkamp.com/2009/07/09/custom-popup-rating-component-in-spark-flex-4-gumbo/464#comment-198</link>
		<dc:creator>Andy Hulstkamp</dc:creator>
		<pubDate>Fri, 28 May 2010 23:01:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.hulstkamp.com/?p=464#comment-198</guid>
		<description>@Erich

Use Illustrator and export to FXG.</description>
		<content:encoded><![CDATA[<p>@Erich</p>
<p>Use Illustrator and export to FXG.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Erich Cervantez</title>
		<link>http://www.hulstkamp.com/2009/07/09/custom-popup-rating-component-in-spark-flex-4-gumbo/464#comment-194</link>
		<dc:creator>Erich Cervantez</dc:creator>
		<pubDate>Tue, 25 May 2010 00:00:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.hulstkamp.com/?p=464#comment-194</guid>
		<description>Yeah I'm curious too how you got the path data?

I created a similar "star" rating component and had to code the path data by hand...painstaking!</description>
		<content:encoded><![CDATA[<p>Yeah I&#8217;m curious too how you got the path data?</p>
<p>I created a similar &#8220;star&#8221; rating component and had to code the path data by hand&#8230;painstaking!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: AH: Updated components to Flex 4 sdk final - Andy Hulstkamp. Seedlings for RIAs</title>
		<link>http://www.hulstkamp.com/2009/07/09/custom-popup-rating-component-in-spark-flex-4-gumbo/464#comment-182</link>
		<dc:creator>AH: Updated components to Flex 4 sdk final - Andy Hulstkamp. Seedlings for RIAs</dc:creator>
		<pubDate>Sat, 08 May 2010 16:26:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.hulstkamp.com/?p=464#comment-182</guid>
		<description>[...] Flex 4 Spark Rating Component. View source enabled. Original post here. [...]</description>
		<content:encoded><![CDATA[<p>[...] Flex 4 Spark Rating Component. View source enabled. Original post here. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Flex 4 in brief &#124; Flex Certification</title>
		<link>http://www.hulstkamp.com/2009/07/09/custom-popup-rating-component-in-spark-flex-4-gumbo/464#comment-159</link>
		<dc:creator>Flex 4 in brief &#124; Flex Certification</dc:creator>
		<pubDate>Fri, 26 Mar 2010 07:24:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.hulstkamp.com/?p=464#comment-159</guid>
		<description>[...] Custom PopUp Rating Component in Spark Flex 4 [...]</description>
		<content:encoded><![CDATA[<p>[...] Custom PopUp Rating Component in Spark Flex 4 [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Flex 4 &#8211; BookMarks &#124; Flex Certification</title>
		<link>http://www.hulstkamp.com/2009/07/09/custom-popup-rating-component-in-spark-flex-4-gumbo/464#comment-158</link>
		<dc:creator>Flex 4 &#8211; BookMarks &#124; Flex Certification</dc:creator>
		<pubDate>Wed, 24 Mar 2010 07:13:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.hulstkamp.com/?p=464#comment-158</guid>
		<description>[...] Various Skinning Examples [...]</description>
		<content:encoded><![CDATA[<p>[...] Various Skinning Examples [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anshul</title>
		<link>http://www.hulstkamp.com/2009/07/09/custom-popup-rating-component-in-spark-flex-4-gumbo/464#comment-152</link>
		<dc:creator>Anshul</dc:creator>
		<pubDate>Tue, 09 Feb 2010 22:43:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.hulstkamp.com/?p=464#comment-152</guid>
		<description>How do you get the path data?</description>
		<content:encoded><![CDATA[<p>How do you get the path data?</p>
]]></content:encoded>
	</item>
</channel>
</rss>

