<?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: How to Define Styles on Skins in Flex 4</title>
	<atom:link href="http://www.jamesward.com/2010/07/30/how-to-define-styles-on-skins-in-flex-4/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.jamesward.com/2010/07/30/how-to-define-styles-on-skins-in-flex-4/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=how-to-define-styles-on-skins-in-flex-4</link>
	<description>Heroku &#124; Java &#124; Scala &#124; Cloud &#124; Open Source &#124; Linux</description>
	<lastBuildDate>Wed, 08 Feb 2012 21:11:00 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
	<item>
		<title>By: darren</title>
		<link>http://www.jamesward.com/2010/07/30/how-to-define-styles-on-skins-in-flex-4/comment-page-1/#comment-164599</link>
		<dc:creator>darren</dc:creator>
		<pubDate>Tue, 01 Nov 2011 00:17:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.jamesward.com/?p=1932#comment-164599</guid>
		<description>Hi. interesting post. I wish I could monkey patch the sdk used at work.
It sounds like in the comments someone was saying you can&#039;t extend an mxml class.
I assume I am misreading, but in case I&#039;m not, you definitely can.
a component saved as &quot;TemplateApplication.mxml&quot;:
&lt;pre&gt;

   &lt;!-- some content here --&gt;

&lt;/pre&gt;
can be used in an app named &#039;MainApp.mxml&quot; as such:
&lt;pre&gt;

   &lt;!-- some content here --&gt;

&lt;/pre&gt;
And in this case TemplateApplication extends Application. 

The same can be done, obviously for any mxml component, from s:Button to s:SparkSkin. It&#039;s the same syntax as the &quot;Code-Behind&quot; approach, but in this case the code is another mxml file, not an actionscript file.</description>
		<content:encoded><![CDATA[<p>Hi. interesting post. I wish I could monkey patch the sdk used at work.<br />
It sounds like in the comments someone was saying you can&#8217;t extend an mxml class.<br />
I assume I am misreading, but in case I&#8217;m not, you definitely can.<br />
a component saved as &#8220;TemplateApplication.mxml&#8221;:</p>
<pre>

   <!-- some content here -->
</pre>
<p>can be used in an app named &#8216;MainApp.mxml&#8221; as such:</p>
<pre>

   <!-- some content here -->
</pre>
<p>And in this case TemplateApplication extends Application. </p>
<p>The same can be done, obviously for any mxml component, from s:Button to s:SparkSkin. It&#8217;s the same syntax as the &#8220;Code-Behind&#8221; approach, but in this case the code is another mxml file, not an actionscript file.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: tarun</title>
		<link>http://www.jamesward.com/2010/07/30/how-to-define-styles-on-skins-in-flex-4/comment-page-1/#comment-164579</link>
		<dc:creator>tarun</dc:creator>
		<pubDate>Fri, 28 Oct 2011 07:25:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.jamesward.com/?p=1932#comment-164579</guid>
		<description>change the thickness of the  border of TextInput  while displaying the error String</description>
		<content:encoded><![CDATA[<p>change the thickness of the  border of TextInput  while displaying the error String</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: lionheart</title>
		<link>http://www.jamesward.com/2010/07/30/how-to-define-styles-on-skins-in-flex-4/comment-page-1/#comment-163583</link>
		<dc:creator>lionheart</dc:creator>
		<pubDate>Tue, 28 Jun 2011 02:21:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.jamesward.com/?p=1932#comment-163583</guid>
		<description>Hello. Thanks for this wonderful explanation about Flex styling. 

Hope you can help me with my problem. I need to dynamically check  if a given style is defined on a given component. How will I do that? 

For example, if a we defined a &quot;style1&quot;  style for a given component, and I need to check like this pseudocode .... var style1Defined:Boolean = component has the property &quot;style1&quot;;</description>
		<content:encoded><![CDATA[<p>Hello. Thanks for this wonderful explanation about Flex styling. </p>
<p>Hope you can help me with my problem. I need to dynamically check  if a given style is defined on a given component. How will I do that? </p>
<p>For example, if a we defined a &#8220;style1&#8243;  style for a given component, and I need to check like this pseudocode &#8230;. var style1Defined:Boolean = component has the property &#8220;style1&#8243;;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: raj roy</title>
		<link>http://www.jamesward.com/2010/07/30/how-to-define-styles-on-skins-in-flex-4/comment-page-1/#comment-163567</link>
		<dc:creator>raj roy</dc:creator>
		<pubDate>Thu, 23 Jun 2011 14:32:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.jamesward.com/?p=1932#comment-163567</guid>
		<description>thx bro...very helpful.</description>
		<content:encoded><![CDATA[<p>thx bro&#8230;very helpful.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sxd</title>
		<link>http://www.jamesward.com/2010/07/30/how-to-define-styles-on-skins-in-flex-4/comment-page-1/#comment-163076</link>
		<dc:creator>Sxd</dc:creator>
		<pubDate>Mon, 18 Apr 2011 17:30:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.jamesward.com/?p=1932#comment-163076</guid>
		<description>ok i saw 
https://github.com/jamesward/Styles4Skins/blob/master/src/mx/core/UIComponent.as</description>
		<content:encoded><![CDATA[<p>ok i saw<br />
<a href="https://github.com/jamesward/Styles4Skins/blob/master/src/mx/core/UIComponent.as" rel="nofollow">https://github.com/jamesward/Styles4Skins/blob/master/src/mx/core/UIComponent.as</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: James Ward</title>
		<link>http://www.jamesward.com/2010/07/30/how-to-define-styles-on-skins-in-flex-4/comment-page-1/#comment-163069</link>
		<dc:creator>James Ward</dc:creator>
		<pubDate>Mon, 18 Apr 2011 12:01:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.jamesward.com/?p=1932#comment-163069</guid>
		<description>That property doesn&#039;t exist on Button, or anywhere, by default.  I had to monkey patch UIComponent to get it on the components.</description>
		<content:encoded><![CDATA[<p>That property doesn&#8217;t exist on Button, or anywhere, by default.  I had to monkey patch UIComponent to get it on the components.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sxd</title>
		<link>http://www.jamesward.com/2010/07/30/how-to-define-styles-on-skins-in-flex-4/comment-page-1/#comment-163068</link>
		<dc:creator>Sxd</dc:creator>
		<pubDate>Mon, 18 Apr 2011 06:53:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.jamesward.com/?p=1932#comment-163068</guid>
		<description>seem like spark button not have &quot;style&quot;  property</description>
		<content:encoded><![CDATA[<p>seem like spark button not have &#8220;style&#8221;  property</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Todd</title>
		<link>http://www.jamesward.com/2010/07/30/how-to-define-styles-on-skins-in-flex-4/comment-page-1/#comment-162948</link>
		<dc:creator>Todd</dc:creator>
		<pubDate>Fri, 08 Apr 2011 17:03:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.jamesward.com/?p=1932#comment-162948</guid>
		<description>The amount of code it took to create a skin to style an existing component, this just seems backwards, I would love to write a few lines of css if it meant not having to create a new skin. In the case of the spark button component, it&#039;s just not worth the effort, you can create a brand new custom button component with more styling ability in about the same amount of work.  I know, I know, I&#039;ll go add a feature request.</description>
		<content:encoded><![CDATA[<p>The amount of code it took to create a skin to style an existing component, this just seems backwards, I would love to write a few lines of css if it meant not having to create a new skin. In the case of the spark button component, it&#8217;s just not worth the effort, you can create a brand new custom button component with more styling ability in about the same amount of work.  I know, I know, I&#8217;ll go add a feature request.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: James Ward</title>
		<link>http://www.jamesward.com/2010/07/30/how-to-define-styles-on-skins-in-flex-4/comment-page-1/#comment-162882</link>
		<dc:creator>James Ward</dc:creator>
		<pubDate>Fri, 01 Apr 2011 21:16:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.jamesward.com/?p=1932#comment-162882</guid>
		<description>Looks like you got the &quot;show&quot; problem worked out.  But the other problem AFAIK is just a FOL.  :(  Sorry.  See you at 360!</description>
		<content:encoded><![CDATA[<p>Looks like you got the &#8220;show&#8221; problem worked out.  But the other problem AFAIK is just a FOL.  :(  Sorry.  See you at 360!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Amy</title>
		<link>http://www.jamesward.com/2010/07/30/how-to-define-styles-on-skins-in-flex-4/comment-page-1/#comment-162879</link>
		<dc:creator>Amy</dc:creator>
		<pubDate>Fri, 01 Apr 2011 16:36:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.jamesward.com/?p=1932#comment-162879</guid>
		<description>I&#039;m getting some weird issues with button styles, and I was wondering if you could shed some light.  It seems that any style starting with the string &quot;show&quot; is ignored (http://tech.groups.yahoo.com/group/flexcoders/message/161797), and also the spark button explicitly prevents you from using textAlign as a style on a button (http://tech.groups.yahoo.com/group/flexcoders/message/161798).  Can you shed any light on how to get around these restrictions, and why on earth they are there in the first place?

Thanks, and see you @ 360&#124;Flex!</description>
		<content:encoded><![CDATA[<p>I&#8217;m getting some weird issues with button styles, and I was wondering if you could shed some light.  It seems that any style starting with the string &#8220;show&#8221; is ignored (<a href="http://tech.groups.yahoo.com/group/flexcoders/message/161797" rel="nofollow">http://tech.groups.yahoo.com/group/flexcoders/message/161797</a>), and also the spark button explicitly prevents you from using textAlign as a style on a button (<a href="http://tech.groups.yahoo.com/group/flexcoders/message/161798" rel="nofollow">http://tech.groups.yahoo.com/group/flexcoders/message/161798</a>).  Can you shed any light on how to get around these restrictions, and why on earth they are there in the first place?</p>
<p>Thanks, and see you @ 360|Flex!</p>
]]></content:encoded>
	</item>
</channel>
</rss>

