<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.2.1" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Comments on: Setting a Flex application&#8217;s style name</title>
	<link>http://blog.flexexamples.com/2007/09/18/setting-a-flex-applications-style-name/</link>
	<description>A bunch of examples for Adobe Flex and ActionScript</description>
	<pubDate>Fri, 05 Dec 2008 10:04:11 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.2.1</generator>

	<item>
		<title>By: peterd</title>
		<link>http://blog.flexexamples.com/2007/09/18/setting-a-flex-applications-style-name/#comment-5246</link>
		<author>peterd</author>
		<pubDate>Wed, 19 Dec 2007 15:54:47 +0000</pubDate>
		<guid>http://blog.flexexamples.com/2007/09/18/setting-a-flex-applications-style-name/#comment-5246</guid>
		<description>Jesse,

Yes, you can apply a style to a single Button on control/container by setting the &lt;code&gt;styleName&lt;/code&gt; property, such as:

&lt;pre class="code"&gt;
&#60;mx:Button label="Custom styled" styleName="myStyleName" /&#62;
&#60;mx:Button label="Default styled" /&#62;

&#60;mx:Style&#62;
    .myStyleName {
        color: red;
    }
&#60;/mx:Style&#62;
&lt;/pre&gt;

Hope that helps,
Peter</description>
		<content:encoded><![CDATA[<p>Jesse,</p>
<p>Yes, you can apply a style to a single Button on control/container by setting the <code>styleName</code> property, such as:</p>
<pre class="code">
&lt;mx:Button label="Custom styled" styleName="myStyleName" /&gt;
&lt;mx:Button label="Default styled" /&gt;

&lt;mx:Style&gt;
    .myStyleName {
        color: red;
    }
&lt;/mx:Style&gt;
</pre>
<p>Hope that helps,<br />
Peter</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jesse</title>
		<link>http://blog.flexexamples.com/2007/09/18/setting-a-flex-applications-style-name/#comment-5244</link>
		<author>Jesse</author>
		<pubDate>Wed, 19 Dec 2007 15:00:24 +0000</pubDate>
		<guid>http://blog.flexexamples.com/2007/09/18/setting-a-flex-applications-style-name/#comment-5244</guid>
		<description>Is there a way to change the style dynamically like this on just one component? Say I just wanted to change the style of button 1 but not the other two?</description>
		<content:encoded><![CDATA[<p>Is there a way to change the style dynamically like this on just one component? Say I just wanted to change the style of button 1 but not the other two?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John C. Bland II</title>
		<link>http://blog.flexexamples.com/2007/09/18/setting-a-flex-applications-style-name/#comment-2715</link>
		<author>John C. Bland II</author>
		<pubDate>Fri, 21 Sep 2007 07:55:27 +0000</pubDate>
		<guid>http://blog.flexexamples.com/2007/09/18/setting-a-flex-applications-style-name/#comment-2715</guid>
		<description>Ok...I figured could just put it up there but I wasn't sure since you were using setStyle().

Koo on posting code. I'll keep that in mind.</description>
		<content:encoded><![CDATA[<p>Ok&#8230;I figured could just put it up there but I wasn&#8217;t sure since you were using setStyle().</p>
<p>Koo on posting code. I&#8217;ll keep that in mind.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: peterd</title>
		<link>http://blog.flexexamples.com/2007/09/18/setting-a-flex-applications-style-name/#comment-2581</link>
		<author>peterd</author>
		<pubDate>Wed, 19 Sep 2007 14:05:12 +0000</pubDate>
		<guid>http://blog.flexexamples.com/2007/09/18/setting-a-flex-applications-style-name/#comment-2581</guid>
		<description>Yeah, you can just do this if you want:

&lt;pre class="code"&gt;
&#60;mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
        layout="vertical"
        verticalAlign="middle"
        horizontalAlign="center"
        styleName="plain"&#62;
    ...
&#60;/mx:Application&#62;
&lt;/pre&gt;

Peter

PS: The trick to posting code is to change all your &#60; characters to "[" or "&#38;lt;".</description>
		<content:encoded><![CDATA[<p>Yeah, you can just do this if you want:</p>
<pre class="code">
&lt;mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
        layout="vertical"
        verticalAlign="middle"
        horizontalAlign="center"
        styleName="plain"&gt;
    ...
&lt;/mx:Application&gt;
</pre>
<p>Peter</p>
<p>PS: The trick to posting code is to change all your &lt; characters to &#8220;[&#8221; or &#8220;&amp;lt;&#8221;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John C. Bland II</title>
		<link>http://blog.flexexamples.com/2007/09/18/setting-a-flex-applications-style-name/#comment-2553</link>
		<author>John C. Bland II</author>
		<pubDate>Wed, 19 Sep 2007 08:09:09 +0000</pubDate>
		<guid>http://blog.flexexamples.com/2007/09/18/setting-a-flex-applications-style-name/#comment-2553</guid>
		<description>ok dude...I give up on pasting code. :-) Basically, can you set styleName="plain" in the initial mx:Application tag?

Sorry for the multiple comments.</description>
		<content:encoded><![CDATA[<p>ok dude&#8230;I give up on pasting code. :-) Basically, can you set styleName=&#8221;plain&#8221; in the initial mx:Application tag?</p>
<p>Sorry for the multiple comments.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John C. Bland II</title>
		<link>http://blog.flexexamples.com/2007/09/18/setting-a-flex-applications-style-name/#comment-2545</link>
		<author>John C. Bland II</author>
		<pubDate>Wed, 19 Sep 2007 07:14:02 +0000</pubDate>
		<guid>http://blog.flexexamples.com/2007/09/18/setting-a-flex-applications-style-name/#comment-2545</guid>
		<description>Does this work just the same but from the initial load?

&lt;pre class="code"&gt;
&#60;mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
        layout="vertical"
        verticalAlign="middle"
        horizontalAlign="center"&#62;

    …

&#60;/mx:Application&#62;
&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>Does this work just the same but from the initial load?</p>
<pre class="code">
&lt;mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
        layout="vertical"
        verticalAlign="middle"
        horizontalAlign="center"&gt;

    …

&lt;/mx:Application&gt;
</pre>
]]></content:encoded>
	</item>
</channel>
</rss>
