<?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: Advanced FXG Spark Icon Buttons with one generic skin in Flex4 (Gumbo)</title>
	<atom:link href="http://www.hulstkamp.com/2009/06/20/advanced-fxg-spark-icon-buttons-with-one-generic-skin-in-flex4-gumbo/439/feed" rel="self" type="application/rss+xml" />
	<link>http://www.hulstkamp.com/2009/06/20/advanced-fxg-spark-icon-buttons-with-one-generic-skin-in-flex4-gumbo/439</link>
	<description>andy hulstkamp blog about rich internet applications, flex, flash, java, webapps, web, code, experiments</description>
	<pubDate>Tue, 07 Feb 2012 23:43:06 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.1</generator>
		<item>
		<title>By: Avi</title>
		<link>http://www.hulstkamp.com/2009/06/20/advanced-fxg-spark-icon-buttons-with-one-generic-skin-in-flex4-gumbo/439#comment-662</link>
		<dc:creator>Avi</dc:creator>
		<pubDate>Sun, 24 Jul 2011 16:07:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.hulstkamp.com/?p=439#comment-662</guid>
		<description>Hi All,

I tried to add new style prop 
destIconScale (and not 1 as declared inside skin)

i can see it except the value on childrenCreated()

but

it looks the tarnsition doesn't except the value(says NaN)
fromState="up" toState="over"

any idea?</description>
		<content:encoded><![CDATA[<p>Hi All,</p>
<p>I tried to add new style prop<br />
destIconScale (and not 1 as declared inside skin)</p>
<p>i can see it except the value on childrenCreated()</p>
<p>but</p>
<p>it looks the tarnsition doesn&#8217;t except the value(says NaN)<br />
fromState=&#8221;up&#8221; toState=&#8221;over&#8221;</p>
<p>any idea?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andy Hulstkamp</title>
		<link>http://www.hulstkamp.com/2009/06/20/advanced-fxg-spark-icon-buttons-with-one-generic-skin-in-flex4-gumbo/439#comment-656</link>
		<dc:creator>Andy Hulstkamp</dc:creator>
		<pubDate>Sun, 24 Jul 2011 08:41:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.hulstkamp.com/?p=439#comment-656</guid>
		<description>Mark,

Make the background rect in the skin transparent (set alpha property). You might want to remove the drop shadow, so that it does not mess with transparency.

andy</description>
		<content:encoded><![CDATA[<p>Mark,</p>
<p>Make the background rect in the skin transparent (set alpha property). You might want to remove the drop shadow, so that it does not mess with transparency.</p>
<p>andy</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mark Embrey</title>
		<link>http://www.hulstkamp.com/2009/06/20/advanced-fxg-spark-icon-buttons-with-one-generic-skin-in-flex4-gumbo/439#comment-644</link>
		<dc:creator>Mark Embrey</dc:creator>
		<pubDate>Fri, 22 Jul 2011 16:55:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.hulstkamp.com/?p=439#comment-644</guid>
		<description>Hi Andy -

I've been trying to figure out how to introduce transparency into the buttons.

Any ideas?

thanks,

Mark</description>
		<content:encoded><![CDATA[<p>Hi Andy -</p>
<p>I&#8217;ve been trying to figure out how to introduce transparency into the buttons.</p>
<p>Any ideas?</p>
<p>thanks,</p>
<p>Mark</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andy Hulstkamp</title>
		<link>http://www.hulstkamp.com/2009/06/20/advanced-fxg-spark-icon-buttons-with-one-generic-skin-in-flex4-gumbo/439#comment-632</link>
		<dc:creator>Andy Hulstkamp</dc:creator>
		<pubDate>Tue, 19 Jul 2011 06:51:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.hulstkamp.com/?p=439#comment-632</guid>
		<description>Shailen TJ

Are you using the update version?
Did you check the classpath?

andy</description>
		<content:encoded><![CDATA[<p>Shailen TJ</p>
<p>Are you using the update version?<br />
Did you check the classpath?</p>
<p>andy</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Shailen TJ</title>
		<link>http://www.hulstkamp.com/2009/06/20/advanced-fxg-spark-icon-buttons-with-one-generic-skin-in-flex4-gumbo/439#comment-625</link>
		<dc:creator>Shailen TJ</dc:creator>
		<pubDate>Thu, 14 Jul 2011 13:01:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.hulstkamp.com/?p=439#comment-625</guid>
		<description>I get an error when I import your files into a fresh Flex application, in Flash Builder 4.5:

Error in AHGenericFXGIconButtonSkin.mxml:
Line 293:
Could not resolve  to a component implementation.</description>
		<content:encoded><![CDATA[<p>I get an error when I import your files into a fresh Flex application, in Flash Builder 4.5:</p>
<p>Error in AHGenericFXGIconButtonSkin.mxml:<br />
Line 293:<br />
Could not resolve  to a component implementation.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kersten</title>
		<link>http://www.hulstkamp.com/2009/06/20/advanced-fxg-spark-icon-buttons-with-one-generic-skin-in-flex4-gumbo/439#comment-469</link>
		<dc:creator>Kersten</dc:creator>
		<pubDate>Wed, 16 Mar 2011 09:42:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.hulstkamp.com/?p=439#comment-469</guid>
		<description>Hi Andy,

thanks for your advice. It works fine!

Kersten</description>
		<content:encoded><![CDATA[<p>Hi Andy,</p>
<p>thanks for your advice. It works fine!</p>
<p>Kersten</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andy Hulstkamp</title>
		<link>http://www.hulstkamp.com/2009/06/20/advanced-fxg-spark-icon-buttons-with-one-generic-skin-in-flex4-gumbo/439#comment-436</link>
		<dc:creator>Andy Hulstkamp</dc:creator>
		<pubDate>Tue, 15 Feb 2011 16:59:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.hulstkamp.com/?p=439#comment-436</guid>
		<description>Kersten,

The code here was based on the Spark beta sdk. The nested grouping came from catalyst and I had to introduce some stuff in the code because of this and because of the scaling effect I wanted to have.

You could remove the nested grouping, set horizontalCenter and verticalCenter to 0 (as you did) AND comment out 

 el.width = el.height = 0;

on line #120 in AHGenericFXGIconButtonSkin

hth
andy</description>
		<content:encoded><![CDATA[<p>Kersten,</p>
<p>The code here was based on the Spark beta sdk. The nested grouping came from catalyst and I had to introduce some stuff in the code because of this and because of the scaling effect I wanted to have.</p>
<p>You could remove the nested grouping, set horizontalCenter and verticalCenter to 0 (as you did) AND comment out </p>
<p> el.width = el.height = 0;</p>
<p>on line #120 in AHGenericFXGIconButtonSkin</p>
<p>hth<br />
andy</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kersten</title>
		<link>http://www.hulstkamp.com/2009/06/20/advanced-fxg-spark-icon-buttons-with-one-generic-skin-in-flex4-gumbo/439#comment-435</link>
		<dc:creator>Kersten</dc:creator>
		<pubDate>Tue, 15 Feb 2011 14:02:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.hulstkamp.com/?p=439#comment-435</guid>
		<description>Hi Andy,

nice example and a good starting point for further investigations. But one thing I don't understand. All the graphics (Bus, Train, etc.) are grouped twice (group in a group). It doesn't work if I use only one group although I add horizontalCenter="0" verticalCenter="0" to the root. The graphics are not centered. Do you know why?

Best wishes,
Kersten</description>
		<content:encoded><![CDATA[<p>Hi Andy,</p>
<p>nice example and a good starting point for further investigations. But one thing I don&#8217;t understand. All the graphics (Bus, Train, etc.) are grouped twice (group in a group). It doesn&#8217;t work if I use only one group although I add horizontalCenter=&#8221;0&#8243; verticalCenter=&#8221;0&#8243; to the root. The graphics are not centered. Do you know why?</p>
<p>Best wishes,<br />
Kersten</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Seraphin</title>
		<link>http://www.hulstkamp.com/2009/06/20/advanced-fxg-spark-icon-buttons-with-one-generic-skin-in-flex4-gumbo/439#comment-262</link>
		<dc:creator>Seraphin</dc:creator>
		<pubDate>Tue, 27 Jul 2010 14:24:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.hulstkamp.com/?p=439#comment-262</guid>
		<description>Thanks a lot, it works. ;-)</description>
		<content:encoded><![CDATA[<p>Thanks a lot, it works. <img src='http://www.hulstkamp.com/soil/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andy Hulstkamp</title>
		<link>http://www.hulstkamp.com/2009/06/20/advanced-fxg-spark-icon-buttons-with-one-generic-skin-in-flex4-gumbo/439#comment-261</link>
		<dc:creator>Andy Hulstkamp</dc:creator>
		<pubDate>Tue, 27 Jul 2010 14:13:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.hulstkamp.com/?p=439#comment-261</guid>
		<description>Seraphin

Flex 4 uses the value in 'emphasized' to switch the styleName. If 'emphasized' is set to true, Flex will look for a styleName 'emphasized' and applies all the styles to the button.

Thus using

s&#124;Button.emphasized {
skinClass: ClassReference('AHGenericFXGIconButtonSkin');
chromeColor: "0x00FF00" ; 
color: #FFFFFF;
iconColor: #e0e0e0;
iconScale: 0.75;
iconClass: ClassReference("myLibrary.Bus");
color: "0xe0e0e0";
}

will aplly all the values to the Button (Skin). Change them as needed.

Actually I don't know why the Flex SDK team did not decide to use the emphasize property as a state. But then again, you could easily introduce this to the component:

Extend from Button override the emphasized property and change the behaviour so that a new state is being introduced. Then use this state in the skin to define a emphasized state.

hth
andy</description>
		<content:encoded><![CDATA[<p>Seraphin</p>
<p>Flex 4 uses the value in &#8216;emphasized&#8217; to switch the styleName. If &#8216;emphasized&#8217; is set to true, Flex will look for a styleName &#8216;emphasized&#8217; and applies all the styles to the button.</p>
<p>Thus using</p>
<p>s|Button.emphasized {<br />
skinClass: ClassReference(&#8217;AHGenericFXGIconButtonSkin&#8217;);<br />
chromeColor: &#8220;0&#215;00FF00&#8243; ;<br />
color: #FFFFFF;<br />
iconColor: #e0e0e0;<br />
iconScale: 0.75;<br />
iconClass: ClassReference(&#8221;myLibrary.Bus&#8221;);<br />
color: &#8220;0xe0e0e0&#8243;;<br />
}</p>
<p>will aplly all the values to the Button (Skin). Change them as needed.</p>
<p>Actually I don&#8217;t know why the Flex SDK team did not decide to use the emphasize property as a state. But then again, you could easily introduce this to the component:</p>
<p>Extend from Button override the emphasized property and change the behaviour so that a new state is being introduced. Then use this state in the skin to define a emphasized state.</p>
<p>hth<br />
andy</p>
]]></content:encoded>
	</item>
</channel>
</rss>

