<?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: Creating a custom MX Accordion header skin in Flex 4</title>
	<atom:link href="http://blog.flexexamples.com/2009/06/21/creating-a-custom-halo-accordion-header-skin-in-flex-4/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.flexexamples.com/2009/06/21/creating-a-custom-halo-accordion-header-skin-in-flex-4/</link>
	<description>Just a bunch of Adobe Flex Examples</description>
	<lastBuildDate>Sun, 12 Feb 2012 14:19:03 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Tahir Azeem Alvi</title>
		<link>http://blog.flexexamples.com/2009/06/21/creating-a-custom-halo-accordion-header-skin-in-flex-4/comment-page-1/#comment-9034</link>
		<dc:creator>Tahir Azeem Alvi</dc:creator>
		<pubDate>Fri, 11 Mar 2011 07:38:34 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2009/06/21/creating-a-custom-halo-accordion-header-skin-in-flex-4/#comment-9034</guid>
		<description>Hi peter,

can we maintain the text color for all states of Accordion Header?

currently i set the 
.headerStyle{
  color : &#039;0xFFFFFF&#039;;
  text-roll-over-color : &#039;0xFFFFFF&#039;;
  text-selected-color: &#039;0xFFFFFF&#039;;
}

Bur on down or over state text color is black.

Thanks</description>
		<content:encoded><![CDATA[<p>Hi peter,</p>
<p>can we maintain the text color for all states of Accordion Header?</p>
<p>currently i set the<br />
.headerStyle{<br />
  color : &#8217;0xFFFFFF&#8217;;<br />
  text-roll-over-color : &#8217;0xFFFFFF&#8217;;<br />
  text-selected-color: &#8217;0xFFFFFF&#8217;;<br />
}</p>
<p>Bur on down or over state text color is black.</p>
<p>Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ideveloper</title>
		<link>http://blog.flexexamples.com/2009/06/21/creating-a-custom-halo-accordion-header-skin-in-flex-4/comment-page-1/#comment-8754</link>
		<dc:creator>ideveloper</dc:creator>
		<pubDate>Sun, 19 Dec 2010 09:14:31 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2009/06/21/creating-a-custom-halo-accordion-header-skin-in-flex-4/#comment-8754</guid>
		<description>Hi. How can I change the size or the position of the header text in your example???</description>
		<content:encoded><![CDATA[<p>Hi. How can I change the size or the position of the header text in your example???</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Peter deHaan</title>
		<link>http://blog.flexexamples.com/2009/06/21/creating-a-custom-halo-accordion-header-skin-in-flex-4/comment-page-1/#comment-8381</link>
		<dc:creator>Peter deHaan</dc:creator>
		<pubDate>Thu, 30 Sep 2010 04:32:19 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2009/06/21/creating-a-custom-halo-accordion-header-skin-in-flex-4/#comment-8381</guid>
		<description>@Priya,

You would need to create a custom skin. By default the &lt;code&gt;contentBackgroundColor&lt;/code&gt; style does not support gradients, only solid colors.

Peter</description>
		<content:encoded><![CDATA[<p>@Priya,</p>
<p>You would need to create a custom skin. By default the <code>contentBackgroundColor</code> style does not support gradients, only solid colors.</p>
<p>Peter</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Priya</title>
		<link>http://blog.flexexamples.com/2009/06/21/creating-a-custom-halo-accordion-header-skin-in-flex-4/comment-page-1/#comment-8377</link>
		<dc:creator>Priya</dc:creator>
		<pubDate>Wed, 29 Sep 2010 22:32:18 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2009/06/21/creating-a-custom-halo-accordion-header-skin-in-flex-4/#comment-8377</guid>
		<description>could you please let me know ,how can I apply a gradient colors to the  &quot;contentbackgroundColor&quot; property?</description>
		<content:encoded><![CDATA[<p>could you please let me know ,how can I apply a gradient colors to the  &#8220;contentbackgroundColor&#8221; property?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Peter deHaan</title>
		<link>http://blog.flexexamples.com/2009/06/21/creating-a-custom-halo-accordion-header-skin-in-flex-4/comment-page-1/#comment-8133</link>
		<dc:creator>Peter deHaan</dc:creator>
		<pubDate>Tue, 20 Jul 2010 07:29:52 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2009/06/21/creating-a-custom-halo-accordion-header-skin-in-flex-4/#comment-8133</guid>
		<description>@Priya,

Not sure what you&#039;re trying to do with skinning, but can&#039;t you just set the &lt;code&gt;headerStyleName&lt;/code&gt; style on the Accordion and set the &lt;code&gt;color&lt;/code&gt; style there?
&lt;pre lang=&quot;mxml&quot;&gt;
&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
&lt;s:Application xmlns:fx=&quot;http://ns.adobe.com/mxml/2009&quot;
               xmlns:s=&quot;library://ns.adobe.com/flex/spark&quot;
               xmlns:mx=&quot;library://ns.adobe.com/flex/mx&quot;&gt;
    
    &lt;fx:Style&gt;
        @namespace s &quot;library://ns.adobe.com/flex/spark&quot;;
        @namespace mx &quot;library://ns.adobe.com/flex/mx&quot;;
        
        .headerStyles {
            chromeColor: black;
            color: white;
        }
    &lt;/fx:Style&gt;
    
    &lt;mx:Accordion id=&quot;acc1&quot;
            headerStyleName=&quot;headerStyles&quot;
            width=&quot;300&quot; height=&quot;200&quot;
            horizontalCenter=&quot;0&quot; verticalCenter=&quot;0&quot;&gt;
        &lt;s:NavigatorContent id=&quot;navCon1&quot; label=&quot;One&quot; /&gt;
        &lt;s:NavigatorContent id=&quot;navCon2&quot; label=&quot;Two&quot; /&gt;
        &lt;s:NavigatorContent id=&quot;navCon3&quot; label=&quot;Three&quot; /&gt;
    &lt;/mx:Accordion&gt;
    
&lt;/s:Application&gt;
&lt;/pre&gt;

Peter</description>
		<content:encoded><![CDATA[<p>@Priya,</p>
<p>Not sure what you&#8217;re trying to do with skinning, but can&#8217;t you just set the <code>headerStyleName</code> style on the Accordion and set the <code>color</code> style there?</p>

<div class="wp_syntax"><div class="code"><pre class="mxml" style="font-family:monospace;"><span style="color: #000000;">&lt;?xml version=<span style="color: #ff0000;">&quot;1.0&quot;</span> encoding=<span style="color: #ff0000;">&quot;utf-8&quot;</span>?<span style="color: #7400FF;">&gt;</span></span>
<span style="color: #000000;"><span style="color: #7400FF;">&lt;s:Application</span> xmlns:fx=<span style="color: #ff0000;">&quot;http://ns.adobe.com/mxml/2009&quot;</span></span>
<span style="color: #000000;">               xmlns:s=<span style="color: #ff0000;">&quot;library://ns.adobe.com/flex/spark&quot;</span></span>
<span style="color: #000000;">               xmlns:mx=<span style="color: #ff0000;">&quot;library://ns.adobe.com/flex/mx&quot;</span><span style="color: #7400FF;">&gt;</span></span>
&nbsp;
    <span style="color: #000000;"><span style="color: #7400FF;">&lt;fx:Style</span><span style="color: #7400FF;">&gt;</span></span>
        @namespace s &quot;library://ns.adobe.com/flex/spark&quot;;
        @namespace mx &quot;library://ns.adobe.com/flex/mx&quot;;
&nbsp;
        .headerStyles {
            chromeColor: black;
            color: white;
        }
    <span style="color: #000000;"><span style="color: #7400FF;">&lt;/fx:Style</span><span style="color: #7400FF;">&gt;</span></span>
&nbsp;
    <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:Accordion</span> id=<span style="color: #ff0000;">&quot;acc1&quot;</span></span>
<span style="color: #000000;">            headerStyleName=<span style="color: #ff0000;">&quot;headerStyles&quot;</span></span>
<span style="color: #000000;">            width=<span style="color: #ff0000;">&quot;300&quot;</span> height=<span style="color: #ff0000;">&quot;200&quot;</span></span>
<span style="color: #000000;">            horizontalCenter=<span style="color: #ff0000;">&quot;0&quot;</span> verticalCenter=<span style="color: #ff0000;">&quot;0&quot;</span><span style="color: #7400FF;">&gt;</span></span>
        <span style="color: #000000;"><span style="color: #7400FF;">&lt;s:NavigatorContent</span> id=<span style="color: #ff0000;">&quot;navCon1&quot;</span> label=<span style="color: #ff0000;">&quot;One&quot;</span> <span style="color: #7400FF;">/&gt;</span></span>
        <span style="color: #000000;"><span style="color: #7400FF;">&lt;s:NavigatorContent</span> id=<span style="color: #ff0000;">&quot;navCon2&quot;</span> label=<span style="color: #ff0000;">&quot;Two&quot;</span> <span style="color: #7400FF;">/&gt;</span></span>
        <span style="color: #000000;"><span style="color: #7400FF;">&lt;s:NavigatorContent</span> id=<span style="color: #ff0000;">&quot;navCon3&quot;</span> label=<span style="color: #ff0000;">&quot;Three&quot;</span> <span style="color: #7400FF;">/&gt;</span></span>
    <span style="color: #000000;"><span style="color: #7400FF;">&lt;/mx:Accordion</span><span style="color: #7400FF;">&gt;</span></span>
&nbsp;
<span style="color: #000000;"><span style="color: #7400FF;">&lt;/s:Application</span><span style="color: #7400FF;">&gt;</span></span></pre></div></div>

<p>Peter</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Priya</title>
		<link>http://blog.flexexamples.com/2009/06/21/creating-a-custom-halo-accordion-header-skin-in-flex-4/comment-page-1/#comment-8129</link>
		<dc:creator>Priya</dc:creator>
		<pubDate>Mon, 19 Jul 2010 19:13:59 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2009/06/21/creating-a-custom-halo-accordion-header-skin-in-flex-4/#comment-8129</guid>
		<description>i meant to say &lt;s:Label id=&quot;labelDisplay&quot; color=&quot;#FFFFFF&quot;  &gt;</description>
		<content:encoded><![CDATA[<p>i meant to say &lt;s:Label id=&#8221;labelDisplay&#8221; color=&#8221;#FFFFFF&#8221;  &gt;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Priya</title>
		<link>http://blog.flexexamples.com/2009/06/21/creating-a-custom-halo-accordion-header-skin-in-flex-4/comment-page-1/#comment-8128</link>
		<dc:creator>Priya</dc:creator>
		<pubDate>Mon, 19 Jul 2010 19:13:15 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2009/06/21/creating-a-custom-halo-accordion-header-skin-in-flex-4/#comment-8128</guid>
		<description>Could you please direct on how  we change the accordian header text color in Flex4 skinng. I tried to add
  this label component and it doesn&#039;t seem to be working.Thanks in advance.</description>
		<content:encoded><![CDATA[<p>Could you please direct on how  we change the accordian header text color in Flex4 skinng. I tried to add<br />
  this label component and it doesn&#8217;t seem to be working.Thanks in advance.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Peter deHaan</title>
		<link>http://blog.flexexamples.com/2009/06/21/creating-a-custom-halo-accordion-header-skin-in-flex-4/comment-page-1/#comment-6471</link>
		<dc:creator>Peter deHaan</dc:creator>
		<pubDate>Thu, 26 Nov 2009 20:05:45 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2009/06/21/creating-a-custom-halo-accordion-header-skin-in-flex-4/#comment-6471</guid>
		<description>@AlCapone,

Sure, I&#039;d just create an ActionScript function which sets the &lt;code&gt; headerStyleName&lt;/code&gt; style to whatever whichever custom style you want. Basically make 2-3+ custom selectors and specify the custom Accordion header skin you want to use:
&lt;pre lang=&quot;css&quot;&gt;
.customAccordionHeadStyles1 {
    skin: ClassReference(&quot;skins.CustomAccordionHeaderSkin1&quot;);
}
.customAccordionHeadStyles2 {
    skin: ClassReference(&quot;skins.CustomAccordionHeaderSkin2&quot;);
}
.customAccordionHeadStyles3 {
    skin: ClassReference(&quot;skins.CustomAccordionHeaderSkin3&quot;);
}
&lt;/pre&gt;

And then create some ActionScript functions to set the &lt;code&gt;headerStyleName&lt;/code&gt; to whichever CSS selector you want:
&lt;pre lang=&quot;actionscript3&quot;&gt;
private function useSkin1():void {
    accordion.setStyle(&quot;headerStyleName&quot;, &quot;customAccordionHeadStyles1&quot;);
}
private function useSkin2():void {
    accordion.setStyle(&quot;headerStyleName&quot;, &quot;customAccordionHeadStyles2&quot;);
}
private function useSkin3():void {
    accordion.setStyle(&quot;headerStyleName&quot;, &quot;customAccordionHeadStyles3&quot;);
}
&lt;/pre&gt;

You could probably clean up that code significantly, but it may help get you started.

Peter</description>
		<content:encoded><![CDATA[<p>@AlCapone,</p>
<p>Sure, I&#8217;d just create an ActionScript function which sets the <code> headerStyleName</code> style to whatever whichever custom style you want. Basically make 2-3+ custom selectors and specify the custom Accordion header skin you want to use:</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;"><span style="color: #6666ff;">.customAccordionHeadStyles1</span> <span style="color: #00AA00;">&#123;</span>
    skin<span style="color: #00AA00;">:</span> ClassReference<span style="color: #00AA00;">&#40;</span><span style="color: #ff0000;">&quot;skins.CustomAccordionHeaderSkin1&quot;</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
<span style="color: #6666ff;">.customAccordionHeadStyles2</span> <span style="color: #00AA00;">&#123;</span>
    skin<span style="color: #00AA00;">:</span> ClassReference<span style="color: #00AA00;">&#40;</span><span style="color: #ff0000;">&quot;skins.CustomAccordionHeaderSkin2&quot;</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
<span style="color: #6666ff;">.customAccordionHeadStyles3</span> <span style="color: #00AA00;">&#123;</span>
    skin<span style="color: #00AA00;">:</span> ClassReference<span style="color: #00AA00;">&#40;</span><span style="color: #ff0000;">&quot;skins.CustomAccordionHeaderSkin3&quot;</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></div></div>

<p>And then create some ActionScript functions to set the <code>headerStyleName</code> to whichever CSS selector you want:</p>

<div class="wp_syntax"><div class="code"><pre class="actionscript3" style="font-family:monospace;"><span style="color: #0033ff; font-weight: bold;">private</span> <span style="color: #339966; font-weight: bold;">function</span> useSkin1<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">:</span><span style="color: #0033ff; font-weight: bold;">void</span> <span style="color: #000000;">&#123;</span>
    accordion<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">setStyle</span><span style="color: #000000;">&#40;</span><span style="color: #990000;">&quot;headerStyleName&quot;</span><span style="color: #000066; font-weight: bold;">,</span> <span style="color: #990000;">&quot;customAccordionHeadStyles1&quot;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
<span style="color: #000000;">&#125;</span>
<span style="color: #0033ff; font-weight: bold;">private</span> <span style="color: #339966; font-weight: bold;">function</span> useSkin2<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">:</span><span style="color: #0033ff; font-weight: bold;">void</span> <span style="color: #000000;">&#123;</span>
    accordion<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">setStyle</span><span style="color: #000000;">&#40;</span><span style="color: #990000;">&quot;headerStyleName&quot;</span><span style="color: #000066; font-weight: bold;">,</span> <span style="color: #990000;">&quot;customAccordionHeadStyles2&quot;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
<span style="color: #000000;">&#125;</span>
<span style="color: #0033ff; font-weight: bold;">private</span> <span style="color: #339966; font-weight: bold;">function</span> useSkin3<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">:</span><span style="color: #0033ff; font-weight: bold;">void</span> <span style="color: #000000;">&#123;</span>
    accordion<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">setStyle</span><span style="color: #000000;">&#40;</span><span style="color: #990000;">&quot;headerStyleName&quot;</span><span style="color: #000066; font-weight: bold;">,</span> <span style="color: #990000;">&quot;customAccordionHeadStyles3&quot;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
<span style="color: #000000;">&#125;</span></pre></div></div>

<p>You could probably clean up that code significantly, but it may help get you started.</p>
<p>Peter</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: AlCapone</title>
		<link>http://blog.flexexamples.com/2009/06/21/creating-a-custom-halo-accordion-header-skin-in-flex-4/comment-page-1/#comment-6464</link>
		<dc:creator>AlCapone</dc:creator>
		<pubDate>Thu, 26 Nov 2009 10:30:07 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2009/06/21/creating-a-custom-halo-accordion-header-skin-in-flex-4/#comment-6464</guid>
		<description>i have a question...

i want to switch between  2 or more stlyes , can i use a function to change directly the css file??

thanks.</description>
		<content:encoded><![CDATA[<p>i have a question&#8230;</p>
<p>i want to switch between  2 or more stlyes , can i use a function to change directly the css file??</p>
<p>thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Daniel</title>
		<link>http://blog.flexexamples.com/2009/06/21/creating-a-custom-halo-accordion-header-skin-in-flex-4/comment-page-1/#comment-6057</link>
		<dc:creator>Daniel</dc:creator>
		<pubDate>Mon, 19 Oct 2009 17:47:11 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2009/06/21/creating-a-custom-halo-accordion-header-skin-in-flex-4/#comment-6057</guid>
		<description>...and as usual the answer is pretty obvious on second glance: commenting out the 

useBaseColor = true;

line allows level3 to show unmodified colors.

DMcQ</description>
		<content:encoded><![CDATA[<p>&#8230;and as usual the answer is pretty obvious on second glance: commenting out the </p>
<p>useBaseColor = true;</p>
<p>line allows level3 to show unmodified colors.</p>
<p>DMcQ</p>
]]></content:encoded>
	</item>
</channel>
</rss>

