<?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: Flex 4 Example &#8211; Halo Component with Spark Skin</title>
	<atom:link href="http://www.jamesward.com/2009/07/17/flex-4-example-halo-component-with-spark-skin/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.jamesward.com/2009/07/17/flex-4-example-halo-component-with-spark-skin/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=flex-4-example-halo-component-with-spark-skin</link>
	<description>Heroku &#124; Java &#124; Scala &#124; Cloud &#124; Open Source &#124; Linux</description>
	<lastBuildDate>Wed, 08 Feb 2012 21:29:00 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
	<item>
		<title>By: Lisa</title>
		<link>http://www.jamesward.com/2009/07/17/flex-4-example-halo-component-with-spark-skin/comment-page-1/#comment-158454</link>
		<dc:creator>Lisa</dc:creator>
		<pubDate>Fri, 12 Feb 2010 07:58:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.jamesward.com/blog/?p=1057#comment-158454</guid>
		<description>Thanks James,

well actually i have a good looking skin for a text input but unfortunately there are few bugs in Flex SDK when a textinput has a skin cladd but i got a work around for it now using the text input over the skin (code) so its working for now.
anyways thanks for you response

Lisa</description>
		<content:encoded><![CDATA[<p>Thanks James,</p>
<p>well actually i have a good looking skin for a text input but unfortunately there are few bugs in Flex SDK when a textinput has a skin cladd but i got a work around for it now using the text input over the skin (code) so its working for now.<br />
anyways thanks for you response</p>
<p>Lisa</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: James Ward</title>
		<link>http://www.jamesward.com/2009/07/17/flex-4-example-halo-component-with-spark-skin/comment-page-1/#comment-158431</link>
		<dc:creator>James Ward</dc:creator>
		<pubDate>Sat, 06 Feb 2010 14:52:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.jamesward.com/blog/?p=1057#comment-158431</guid>
		<description>Hi Lisa,

Sorry but you can&#039;t do that.  What do you need on the Spark TextInput that isn&#039;t there?

-James</description>
		<content:encoded><![CDATA[<p>Hi Lisa,</p>
<p>Sorry but you can&#8217;t do that.  What do you need on the Spark TextInput that isn&#8217;t there?</p>
<p>-James</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lisa</title>
		<link>http://www.jamesward.com/2009/07/17/flex-4-example-halo-component-with-spark-skin/comment-page-1/#comment-158428</link>
		<dc:creator>Lisa</dc:creator>
		<pubDate>Fri, 05 Feb 2010 07:35:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.jamesward.com/blog/?p=1057#comment-158428</guid>
		<description>Can we have a Spark SKin for a Halo Text Input (mx TextINput) ofcourse spark text input has a skinClass directly but i want to use a mx text input component
i appreciate your response

Thanks,
Lisa</description>
		<content:encoded><![CDATA[<p>Can we have a Spark SKin for a Halo Text Input (mx TextINput) ofcourse spark text input has a skinClass directly but i want to use a mx text input component<br />
i appreciate your response</p>
<p>Thanks,<br />
Lisa</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: James Ward</title>
		<link>http://www.jamesward.com/2009/07/17/flex-4-example-halo-component-with-spark-skin/comment-page-1/#comment-157595</link>
		<dc:creator>James Ward</dc:creator>
		<pubDate>Mon, 20 Jul 2009 22:44:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.jamesward.com/blog/?p=1057#comment-157595</guid>
		<description>Wow Tink!  Thanks for all the insight there.  Makes total sense.  The thing that I&#039;m excited about is mainly just being able to use FXG skins on Halo components.  So that still seems to be valid.  But what doesn&#039;t work is having other parts of the component rendered by the skin (the Label in the case of Button).  Right?

-James</description>
		<content:encoded><![CDATA[<p>Wow Tink!  Thanks for all the insight there.  Makes total sense.  The thing that I&#8217;m excited about is mainly just being able to use FXG skins on Halo components.  So that still seems to be valid.  But what doesn&#8217;t work is having other parts of the component rendered by the skin (the Label in the case of Button).  Right?</p>
<p>-James</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tink</title>
		<link>http://www.jamesward.com/2009/07/17/flex-4-example-halo-component-with-spark-skin/comment-page-1/#comment-157593</link>
		<dc:creator>Tink</dc:creator>
		<pubDate>Sat, 18 Jul 2009 22:30:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.jamesward.com/blog/?p=1057#comment-157593</guid>
		<description>Hey james

It&#039;s not quite using the skin properly.

The limitation of Halo skins were that they weren&#039;t DisplayObjectContainers, so you could only put graphics in them, no DisplayObjects, but this was easily &lt;a href=&quot;http://www.tink.ws/blog/adding-children-to-skins-spriteborder-spriteprogrammaticskin/&quot; rel=&quot;nofollow&quot;&gt;solved by creating a couple of custom base skin classes that extended Sprite&lt;/a&gt;. The other problem was being able to affect the object that displayed the text as in mx, the TextField was inside the mx:Button itself, where as in spark this has be removed and you have to add an object to your skin to display the text. This was also possible to get round as the TextField inside an mx:Button is the first child added, so it was possible to access this from your skin via getChildAt() and set it&#039;s visible property to false, then adding your own object to display the label inside your custom skin and populating its text using the label property on the mx:Button.

This is not was happening here though. The SimpleText object you have inside you skin is being totally ignored by the mx:Button and no String is ever added to it (as the Button has no idea it should do anything with it). Instead the String that is visible is the protected TextField inside the mx:Button.

You can see this by adding your skin to a spark:Button, You&#039;ll see that your label on your spark:Button has a transition on its color, unlike the mx:Button where the color changes immediately. &lt;a href=&quot;http://www.tink.ws/blog/files/flex/ButtonsSparkSkin/&quot; rel=&quot;nofollow&quot;&gt;Here&#039;s an example&lt;/a&gt;, and for the purpose of making the color transition clearer I have made the start colors red.

The default skin for an mx:Button in Flex 4 is the same skin that is used for the spark:Button (i.e. spark.skins.default.ButtonSkin), but the object that is in the skin to display the String is ignored and the TextField inside the mx:Button is used, as in the above example.</description>
		<content:encoded><![CDATA[<p>Hey james</p>
<p>It&#8217;s not quite using the skin properly.</p>
<p>The limitation of Halo skins were that they weren&#8217;t DisplayObjectContainers, so you could only put graphics in them, no DisplayObjects, but this was easily <a href="http://www.tink.ws/blog/adding-children-to-skins-spriteborder-spriteprogrammaticskin/" rel="nofollow">solved by creating a couple of custom base skin classes that extended Sprite</a>. The other problem was being able to affect the object that displayed the text as in mx, the TextField was inside the mx:Button itself, where as in spark this has be removed and you have to add an object to your skin to display the text. This was also possible to get round as the TextField inside an mx:Button is the first child added, so it was possible to access this from your skin via getChildAt() and set it&#8217;s visible property to false, then adding your own object to display the label inside your custom skin and populating its text using the label property on the mx:Button.</p>
<p>This is not was happening here though. The SimpleText object you have inside you skin is being totally ignored by the mx:Button and no String is ever added to it (as the Button has no idea it should do anything with it). Instead the String that is visible is the protected TextField inside the mx:Button.</p>
<p>You can see this by adding your skin to a spark:Button, You&#8217;ll see that your label on your spark:Button has a transition on its color, unlike the mx:Button where the color changes immediately. <a href="http://www.tink.ws/blog/files/flex/ButtonsSparkSkin/" rel="nofollow">Here&#8217;s an example</a>, and for the purpose of making the color transition clearer I have made the start colors red.</p>
<p>The default skin for an mx:Button in Flex 4 is the same skin that is used for the spark:Button (i.e. spark.skins.default.ButtonSkin), but the object that is in the skin to display the String is ignored and the TextField inside the mx:Button is used, as in the above example.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: evden eve</title>
		<link>http://www.jamesward.com/2009/07/17/flex-4-example-halo-component-with-spark-skin/comment-page-1/#comment-157592</link>
		<dc:creator>evden eve</dc:creator>
		<pubDate>Sat, 18 Jul 2009 15:21:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.jamesward.com/blog/?p=1057#comment-157592</guid>
		<description>good button</description>
		<content:encoded><![CDATA[<p>good button</p>
]]></content:encoded>
	</item>
</channel>
</rss>

