<?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: Quick tip (Flex 4): Using generic skin classes</title>
	<atom:link href="http://www.websector.de/blog/2009/08/10/quick-tip-flex-4-using-generic-skin-classes/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.websector.de/blog/2009/08/10/quick-tip-flex-4-using-generic-skin-classes/</link>
	<description>// Flex, AIR, Flash</description>
	<lastBuildDate>Sun, 05 Sep 2010 18:29:31 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: zmWilliam</title>
		<link>http://www.websector.de/blog/2009/08/10/quick-tip-flex-4-using-generic-skin-classes/comment-page-1/#comment-49775</link>
		<dc:creator>zmWilliam</dc:creator>
		<pubDate>Thu, 26 Aug 2010 12:51:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.websector.de/blog/?p=325#comment-49775</guid>
		<description>Thank you.</description>
		<content:encoded><![CDATA[<p>Thank you.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sectore</title>
		<link>http://www.websector.de/blog/2009/08/10/quick-tip-flex-4-using-generic-skin-classes/comment-page-1/#comment-49501</link>
		<dc:creator>sectore</dc:creator>
		<pubDate>Mon, 23 Nov 2009 13:51:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.websector.de/blog/?p=325#comment-49501</guid>
		<description>Ok :) 

It seems that the color of the Label is changed by &quot;baseColor&quot; property of the Button or its parent, even &quot;baseColor&quot; is not changed by Button itself. Because &quot;baseColor&quot; is inheritable, e.g. from a Group. To exclude the label try this: 
&lt;code&gt;
// Note: 
// &quot;labelDisplay&quot; == id of label + your skin class 
// has to extend SparkSkin
override public function get colorizeExclusions():Array 
{
    return [&quot;labelDisplay&quot;];
}
&lt;/code&gt;

-Jens</description>
		<content:encoded><![CDATA[<p>Ok <img src='http://www.websector.de/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  </p>
<p>It seems that the color of the Label is changed by &#8220;baseColor&#8221; property of the Button or its parent, even &#8220;baseColor&#8221; is not changed by Button itself. Because &#8220;baseColor&#8221; is inheritable, e.g. from a Group. To exclude the label try this:<br />
<code><br />
// Note:<br />
// "labelDisplay" == id of label + your skin class<br />
// has to extend SparkSkin<br />
override public function get colorizeExclusions():Array<br />
{<br />
    return ["labelDisplay"];<br />
}<br />
</code></p>
<p>-Jens</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Evgeny</title>
		<link>http://www.websector.de/blog/2009/08/10/quick-tip-flex-4-using-generic-skin-classes/comment-page-1/#comment-49500</link>
		<dc:creator>Evgeny</dc:creator>
		<pubDate>Mon, 23 Nov 2009 13:43:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.websector.de/blog/?p=325#comment-49500</guid>
		<description>sectore, I know all this. About id &quot;labelDisplay&quot;.
That&#039;s why I specially didn&#039;t set this id, just to test functionality.

And, somehow my label changed its color. Do not know why :)</description>
		<content:encoded><![CDATA[<p>sectore, I know all this. About id &#8220;labelDisplay&#8221;.<br />
That&#8217;s why I specially didn&#8217;t set this id, just to test functionality.</p>
<p>And, somehow my label changed its color. Do not know why <img src='http://www.websector.de/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sectore</title>
		<link>http://www.websector.de/blog/2009/08/10/quick-tip-flex-4-using-generic-skin-classes/comment-page-1/#comment-49499</link>
		<dc:creator>sectore</dc:creator>
		<pubDate>Mon, 23 Nov 2009 07:53:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.websector.de/blog/?p=325#comment-49499</guid>
		<description>Evgeny, a color property of a button sets the color of its label: http://help.adobe.com/en_US/FlashPlatform/beta/reference/actionscript/3/spark/components/supportClasses/ButtonBase.html#style:color 

And you don&#039;t need to set the text for the label in your skin using bindings or anything else, just set the id of the label to &quot;labelDisplay&quot;. The button as a &quot;HostComponent&quot; of the skin will do it ;)

BTW: To understand what&#039;s going behind the scenes check out the original skin class of the Spark Button &lt;code&gt;spark.skins.spark.ButtonSkin&lt;/code&gt; or give the helpful links posted above a shot ;)

-Jens</description>
		<content:encoded><![CDATA[<p>Evgeny, a color property of a button sets the color of its label: <a href="http://help.adobe.com/en_US/FlashPlatform/beta/reference/actionscript/3/spark/components/supportClasses/ButtonBase.html#style:color" rel="nofollow">http://help.adobe.com/en_US/FlashPlatform/beta/reference/actionscript/3/spark/components/supportClasses/ButtonBase.html#style:color</a> </p>
<p>And you don&#8217;t need to set the text for the label in your skin using bindings or anything else, just set the id of the label to &#8220;labelDisplay&#8221;. The button as a &#8220;HostComponent&#8221; of the skin will do it <img src='http://www.websector.de/blog/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>BTW: To understand what&#8217;s going behind the scenes check out the original skin class of the Spark Button <code>spark.skins.spark.ButtonSkin</code> or give the helpful links posted above a shot <img src='http://www.websector.de/blog/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>-Jens</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Evgeny</title>
		<link>http://www.websector.de/blog/2009/08/10/quick-tip-flex-4-using-generic-skin-classes/comment-page-1/#comment-49498</link>
		<dc:creator>Evgeny</dc:creator>
		<pubDate>Sun, 22 Nov 2009 20:34:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.websector.de/blog/?p=325#comment-49498</guid>
		<description>I&#039;ve been trying to figure out all this stuff with skinning Gumbo components today and your article helped me. Thank you!

Also, I can&#039;t understand some things. May be, you can explain something!

For example, I want to write a simple Spark Skin for Button.
There is only one Label ( with text=&quot;{host}&quot;  )
no color is specified and it doesn&#039;t use style attributes from host component as in your example.

Then, I create button with my skin and set color to red. 

The thing I can&#039;t understand: why is my button becoming red? I do not set any color for Label in my skin, How does flex know about this color?

Thank you!</description>
		<content:encoded><![CDATA[<p>I&#8217;ve been trying to figure out all this stuff with skinning Gumbo components today and your article helped me. Thank you!</p>
<p>Also, I can&#8217;t understand some things. May be, you can explain something!</p>
<p>For example, I want to write a simple Spark Skin for Button.<br />
There is only one Label ( with text=&#8221;{host}&#8221;  )<br />
no color is specified and it doesn&#8217;t use style attributes from host component as in your example.</p>
<p>Then, I create button with my skin and set color to red. </p>
<p>The thing I can&#8217;t understand: why is my button becoming red? I do not set any color for Label in my skin, How does flex know about this color?</p>
<p>Thank you!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Marvin Froeder</title>
		<link>http://www.websector.de/blog/2009/08/10/quick-tip-flex-4-using-generic-skin-classes/comment-page-1/#comment-43837</link>
		<dc:creator>Marvin Froeder</dc:creator>
		<pubDate>Tue, 11 Aug 2009 00:14:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.websector.de/blog/?p=325#comment-43837</guid>
		<description>Yeah, that is an good idea to workaround the lack of code reuse on Skins....  ( http://www.flexjunk.com/2009/08/03/flex-4-skinning-ignores-developer-needs/ )

I was able to workaround some scenarios that I had here using your approach.

Thanks a lot =D


VELO</description>
		<content:encoded><![CDATA[<p>Yeah, that is an good idea to workaround the lack of code reuse on Skins&#8230;.  ( <a href="http://www.flexjunk.com/2009/08/03/flex-4-skinning-ignores-developer-needs/" rel="nofollow">http://www.flexjunk.com/2009/08/03/flex-4-skinning-ignores-developer-needs/</a> )</p>
<p>I was able to workaround some scenarios that I had here using your approach.</p>
<p>Thanks a lot =D</p>
<p>VELO</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ely Greenfield</title>
		<link>http://www.websector.de/blog/2009/08/10/quick-tip-flex-4-using-generic-skin-classes/comment-page-1/#comment-43828</link>
		<dc:creator>Ely Greenfield</dc:creator>
		<pubDate>Mon, 10 Aug 2009 17:39:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.websector.de/blog/?p=325#comment-43828</guid>
		<description>Nicely done!</description>
		<content:encoded><![CDATA[<p>Nicely done!</p>
]]></content:encoded>
	</item>
</channel>
</rss>
