<?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: Customizing the Accordion header in Flex 3</title>
	<atom:link href="http://blog.flexexamples.com/2007/10/26/customizing-the-accordion-header-in-flex-3/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.flexexamples.com/2007/10/26/customizing-the-accordion-header-in-flex-3/</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: Rajesh</title>
		<link>http://blog.flexexamples.com/2007/10/26/customizing-the-accordion-header-in-flex-3/comment-page-1/#comment-10263</link>
		<dc:creator>Rajesh</dc:creator>
		<pubDate>Wed, 21 Dec 2011 14:17:24 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2007/10/26/customizing-the-accordion-header-in-flex-3/#comment-10263</guid>
		<description>Hi Peter,

I would like to know that how can i add Icon in header.
in that Icon can i give click Event and in the headerRenderer can i use custom component.

thanks</description>
		<content:encoded><![CDATA[<p>Hi Peter,</p>
<p>I would like to know that how can i add Icon in header.<br />
in that Icon can i give click Event and in the headerRenderer can i use custom component.</p>
<p>thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Peter deHaan</title>
		<link>http://blog.flexexamples.com/2007/10/26/customizing-the-accordion-header-in-flex-3/comment-page-1/#comment-6069</link>
		<dc:creator>Peter deHaan</dc:creator>
		<pubDate>Tue, 20 Oct 2009 14:34:48 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2007/10/26/customizing-the-accordion-header-in-flex-3/#comment-6069</guid>
		<description>@Alex Fisherr,

Try listening for the Accordion container&#039;s &lt;code&gt;change&lt;/code&gt; event, as seen in the following example:
&lt;pre lang=&quot;mxml&quot;&gt;
&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
&lt;!-- http://blog.flexexamples.com/2007/10/26/customizing-the-accordion-header-in-flex-3/ --&gt;
&lt;mx:Application xmlns:mx=&quot;http://www.adobe.com/2006/mxml&quot;
        layout=&quot;vertical&quot;
        verticalAlign=&quot;top&quot;
        backgroundColor=&quot;white&quot;&gt;

    &lt;mx:Script&gt;
        &lt;![CDATA[
            import mx.controls.Alert;
            import mx.events.IndexChangedEvent;

            protected function accordion_change(evt:IndexChangedEvent):void {
                Alert.show(&quot;You clicked the &quot; + accordion.selectedChild.label + &quot; tab!&quot;);
            }
        ]]&gt;
    &lt;/mx:Script&gt;

    &lt;mx:Accordion id=&quot;accordion&quot;
                  resizeToContent=&quot;true&quot;
                  width=&quot;100%&quot;
                  change=&quot;accordion_change(event);&quot;&gt;
        &lt;mx:VBox label=&quot;Red&quot;
                 backgroundColor=&quot;red&quot;
                 width=&quot;100%&quot;
                 height=&quot;200&quot; /&gt;
        &lt;mx:VBox label=&quot;Orange&quot;
                 backgroundColor=&quot;haloOrange&quot;
                 width=&quot;100%&quot;
                 height=&quot;120&quot; /&gt;
        &lt;mx:VBox label=&quot;Yellow&quot;
                 backgroundColor=&quot;yellow&quot;
                 width=&quot;100%&quot;
                 height=&quot;160&quot; /&gt;
        &lt;mx:VBox label=&quot;Green&quot;
                 backgroundColor=&quot;haloGreen&quot;
                 width=&quot;100%&quot;
                 height=&quot;80&quot; /&gt;
        &lt;mx:VBox label=&quot;Blue&quot;
                 backgroundColor=&quot;haloBlue&quot;
                 width=&quot;100%&quot;
                 height=&quot;140&quot; /&gt;
    &lt;/mx:Accordion&gt;

&lt;/mx:Application&gt;
&lt;/pre&gt;

Peter</description>
		<content:encoded><![CDATA[<p>@Alex Fisherr,</p>
<p>Try listening for the Accordion container&#8217;s <code>change</code> event, as seen in the following example:</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: #808080; font-style: italic;">&lt;!-- http://blog.flexexamples.com/2007/10/26/customizing-the-accordion-header-in-flex-3/ --&gt;</span></span>
<span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:Application</span> xmlns:mx=<span style="color: #ff0000;">&quot;http://www.adobe.com/2006/mxml&quot;</span></span>
<span style="color: #000000;">        layout=<span style="color: #ff0000;">&quot;vertical&quot;</span></span>
<span style="color: #000000;">        verticalAlign=<span style="color: #ff0000;">&quot;top&quot;</span></span>
<span style="color: #000000;">        backgroundColor=<span style="color: #ff0000;">&quot;white&quot;</span><span style="color: #7400FF;">&gt;</span></span>
&nbsp;
    <span style="color: #339933;">&lt;mx:Script&gt;</span>
<span style="color: #339933;">        &lt;![CDATA[</span>
<span style="color: #339933;">            import mx.controls.Alert;</span>
<span style="color: #339933;">            import mx.events.IndexChangedEvent;</span>
&nbsp;
<span style="color: #339933;">            protected function accordion_change(evt:IndexChangedEvent):void {</span>
<span style="color: #339933;">                Alert.show(&quot;You clicked the &quot; + accordion.selectedChild.label + &quot; tab!&quot;);</span>
<span style="color: #339933;">            }</span>
<span style="color: #339933;">        ]]&gt;</span>
<span style="color: #339933;">    &lt;/mx:Script&gt;</span>
&nbsp;
    <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:Accordion</span> id=<span style="color: #ff0000;">&quot;accordion&quot;</span></span>
<span style="color: #000000;">                  resizeToContent=<span style="color: #ff0000;">&quot;true&quot;</span></span>
<span style="color: #000000;">                  width=<span style="color: #ff0000;">&quot;100%&quot;</span></span>
<span style="color: #000000;">                  change=<span style="color: #ff0000;">&quot;accordion_change(event);&quot;</span><span style="color: #7400FF;">&gt;</span></span>
        <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:VBox</span> label=<span style="color: #ff0000;">&quot;Red&quot;</span></span>
<span style="color: #000000;">                 backgroundColor=<span style="color: #ff0000;">&quot;red&quot;</span></span>
<span style="color: #000000;">                 width=<span style="color: #ff0000;">&quot;100%&quot;</span></span>
<span style="color: #000000;">                 height=<span style="color: #ff0000;">&quot;200&quot;</span> <span style="color: #7400FF;">/&gt;</span></span>
        <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:VBox</span> label=<span style="color: #ff0000;">&quot;Orange&quot;</span></span>
<span style="color: #000000;">                 backgroundColor=<span style="color: #ff0000;">&quot;haloOrange&quot;</span></span>
<span style="color: #000000;">                 width=<span style="color: #ff0000;">&quot;100%&quot;</span></span>
<span style="color: #000000;">                 height=<span style="color: #ff0000;">&quot;120&quot;</span> <span style="color: #7400FF;">/&gt;</span></span>
        <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:VBox</span> label=<span style="color: #ff0000;">&quot;Yellow&quot;</span></span>
<span style="color: #000000;">                 backgroundColor=<span style="color: #ff0000;">&quot;yellow&quot;</span></span>
<span style="color: #000000;">                 width=<span style="color: #ff0000;">&quot;100%&quot;</span></span>
<span style="color: #000000;">                 height=<span style="color: #ff0000;">&quot;160&quot;</span> <span style="color: #7400FF;">/&gt;</span></span>
        <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:VBox</span> label=<span style="color: #ff0000;">&quot;Green&quot;</span></span>
<span style="color: #000000;">                 backgroundColor=<span style="color: #ff0000;">&quot;haloGreen&quot;</span></span>
<span style="color: #000000;">                 width=<span style="color: #ff0000;">&quot;100%&quot;</span></span>
<span style="color: #000000;">                 height=<span style="color: #ff0000;">&quot;80&quot;</span> <span style="color: #7400FF;">/&gt;</span></span>
        <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:VBox</span> label=<span style="color: #ff0000;">&quot;Blue&quot;</span></span>
<span style="color: #000000;">                 backgroundColor=<span style="color: #ff0000;">&quot;haloBlue&quot;</span></span>
<span style="color: #000000;">                 width=<span style="color: #ff0000;">&quot;100%&quot;</span></span>
<span style="color: #000000;">                 height=<span style="color: #ff0000;">&quot;140&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;/mx:Application</span><span style="color: #7400FF;">&gt;</span></span></pre></div></div>

<p>Peter</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alex Fisherr</title>
		<link>http://blog.flexexamples.com/2007/10/26/customizing-the-accordion-header-in-flex-3/comment-page-1/#comment-6063</link>
		<dc:creator>Alex Fisherr</dc:creator>
		<pubDate>Tue, 20 Oct 2009 08:58:16 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2007/10/26/customizing-the-accordion-header-in-flex-3/#comment-6063</guid>
		<description>Hi Everyone,
                              Its always nice to read Peter&#039;s posts and I&#039;ve always found some helpful stuff from here.  Here I have a question. How do I detect what header was clicked by a user. Registering a click event in accordion&#039;s tags triggers the event even if some item in the VBOX is clicked.

Looking forward for prompt response...</description>
		<content:encoded><![CDATA[<p>Hi Everyone,<br />
                              Its always nice to read Peter&#8217;s posts and I&#8217;ve always found some helpful stuff from here.  Here I have a question. How do I detect what header was clicked by a user. Registering a click event in accordion&#8217;s tags triggers the event even if some item in the VBOX is clicked.</p>
<p>Looking forward for prompt response&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: M. Sayeed</title>
		<link>http://blog.flexexamples.com/2007/10/26/customizing-the-accordion-header-in-flex-3/comment-page-1/#comment-5927</link>
		<dc:creator>M. Sayeed</dc:creator>
		<pubDate>Mon, 05 Oct 2009 05:18:44 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2007/10/26/customizing-the-accordion-header-in-flex-3/#comment-5927</guid>
		<description>thnx a lot Peter, its working :)</description>
		<content:encoded><![CDATA[<p>thnx a lot Peter, its working :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Peter deHaan</title>
		<link>http://blog.flexexamples.com/2007/10/26/customizing-the-accordion-header-in-flex-3/comment-page-1/#comment-5906</link>
		<dc:creator>Peter deHaan</dc:creator>
		<pubDate>Fri, 02 Oct 2009 13:59:15 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2007/10/26/customizing-the-accordion-header-in-flex-3/#comment-5906</guid>
		<description>@M. Sayeed,

Try setting the &lt;code&gt;fillColors&lt;/code&gt; style instead of the &lt;code&gt;backgroundColor&lt;/code&gt; style, as seen in the following example:
&lt;pre lang=&quot;mxml&quot;&gt;
&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
&lt;!-- http://blog.flexexamples.com/2007/10/30/setting-styles-on-individual-flex-accordion-headers/ --&gt;
&lt;mx:Application name=&quot;Accordion_getHeaderAt_setStyle_fillColors_test&quot;
        xmlns:mx=&quot;http://www.adobe.com/2006/mxml&quot;
        layout=&quot;vertical&quot;
        verticalAlign=&quot;middle&quot;
        backgroundColor=&quot;white&quot;&gt;

    &lt;mx:Script&gt;
        &lt;![CDATA[
            private function init():void {
                accordion.getHeaderAt(0).setStyle(&quot;fillColors&quot;, [&quot;red&quot;, &quot;red&quot;]);
                accordion.getHeaderAt(1).setStyle(&quot;fillColors&quot;, [&quot;haloOrange&quot;, &quot;haloOrange&quot;]);
                accordion.getHeaderAt(2).setStyle(&quot;fillColors&quot;, [&quot;yellow&quot;, &quot;yellow&quot;]);
                accordion.getHeaderAt(3).setStyle(&quot;fillColors&quot;, [&quot;haloGreen&quot;, &quot;haloGreen&quot;]);
                accordion.getHeaderAt(4).setStyle(&quot;fillColors&quot;, [&quot;haloBlue&quot;, &quot;haloBlue&quot;]);
            }
        ]]&gt;
    &lt;/mx:Script&gt;

    &lt;mx:Accordion id=&quot;accordion&quot;
            width=&quot;300&quot;
            height=&quot;200&quot;
            creationComplete=&quot;init();&quot;&gt;
        &lt;mx:VBox label=&quot;Red&quot; /&gt;
        &lt;mx:VBox label=&quot;Orange&quot; /&gt;
        &lt;mx:VBox label=&quot;Yellow&quot; /&gt;
        &lt;mx:VBox label=&quot;Green&quot; /&gt;
        &lt;mx:VBox label=&quot;Blue&quot; /&gt;
    &lt;/mx:Accordion&gt;

&lt;/mx:Application&gt;
&lt;/pre&gt;

Peter</description>
		<content:encoded><![CDATA[<p>@M. Sayeed,</p>
<p>Try setting the <code>fillColors</code> style instead of the <code>backgroundColor</code> style, as seen in the following example:</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: #808080; font-style: italic;">&lt;!-- http://blog.flexexamples.com/2007/10/30/setting-styles-on-individual-flex-accordion-headers/ --&gt;</span></span>
<span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:Application</span> name=<span style="color: #ff0000;">&quot;Accordion_getHeaderAt_setStyle_fillColors_test&quot;</span></span>
<span style="color: #000000;">        xmlns:mx=<span style="color: #ff0000;">&quot;http://www.adobe.com/2006/mxml&quot;</span></span>
<span style="color: #000000;">        layout=<span style="color: #ff0000;">&quot;vertical&quot;</span></span>
<span style="color: #000000;">        verticalAlign=<span style="color: #ff0000;">&quot;middle&quot;</span></span>
<span style="color: #000000;">        backgroundColor=<span style="color: #ff0000;">&quot;white&quot;</span><span style="color: #7400FF;">&gt;</span></span>
&nbsp;
    <span style="color: #339933;">&lt;mx:Script&gt;</span>
<span style="color: #339933;">        &lt;![CDATA[</span>
<span style="color: #339933;">            private function init():void {</span>
<span style="color: #339933;">                accordion.getHeaderAt(0).setStyle(&quot;fillColors&quot;, [&quot;red&quot;, &quot;red&quot;]);</span>
<span style="color: #339933;">                accordion.getHeaderAt(1).setStyle(&quot;fillColors&quot;, [&quot;haloOrange&quot;, &quot;haloOrange&quot;]);</span>
<span style="color: #339933;">                accordion.getHeaderAt(2).setStyle(&quot;fillColors&quot;, [&quot;yellow&quot;, &quot;yellow&quot;]);</span>
<span style="color: #339933;">                accordion.getHeaderAt(3).setStyle(&quot;fillColors&quot;, [&quot;haloGreen&quot;, &quot;haloGreen&quot;]);</span>
<span style="color: #339933;">                accordion.getHeaderAt(4).setStyle(&quot;fillColors&quot;, [&quot;haloBlue&quot;, &quot;haloBlue&quot;]);</span>
<span style="color: #339933;">            }</span>
<span style="color: #339933;">        ]]&gt;</span>
<span style="color: #339933;">    &lt;/mx:Script&gt;</span>
&nbsp;
    <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:Accordion</span> id=<span style="color: #ff0000;">&quot;accordion&quot;</span></span>
<span style="color: #000000;">            width=<span style="color: #ff0000;">&quot;300&quot;</span></span>
<span style="color: #000000;">            height=<span style="color: #ff0000;">&quot;200&quot;</span></span>
<span style="color: #000000;">            creationComplete=<span style="color: #ff0000;">&quot;init();&quot;</span><span style="color: #7400FF;">&gt;</span></span>
        <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:VBox</span> label=<span style="color: #ff0000;">&quot;Red&quot;</span> <span style="color: #7400FF;">/&gt;</span></span>
        <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:VBox</span> label=<span style="color: #ff0000;">&quot;Orange&quot;</span> <span style="color: #7400FF;">/&gt;</span></span>
        <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:VBox</span> label=<span style="color: #ff0000;">&quot;Yellow&quot;</span> <span style="color: #7400FF;">/&gt;</span></span>
        <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:VBox</span> label=<span style="color: #ff0000;">&quot;Green&quot;</span> <span style="color: #7400FF;">/&gt;</span></span>
        <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:VBox</span> label=<span style="color: #ff0000;">&quot;Blue&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;/mx:Application</span><span style="color: #7400FF;">&gt;</span></span></pre></div></div>

<p>Peter</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: M. Sayeed</title>
		<link>http://blog.flexexamples.com/2007/10/26/customizing-the-accordion-header-in-flex-3/comment-page-1/#comment-5904</link>
		<dc:creator>M. Sayeed</dc:creator>
		<pubDate>Fri, 02 Oct 2009 05:08:54 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2007/10/26/customizing-the-accordion-header-in-flex-3/#comment-5904</guid>
		<description>hi, thanks for nice post,  i was looking for.

I want to change the each accordian header background color. I am trying to do with this code :
&lt;pre lang=&quot;actionscript3&quot;&gt;
 accordion.getHeaderAt(0).setStyle(&quot;backgroundColor&quot;,&quot;red&quot;); 
 accordion.getHeaderAt(1).setStyle(&quot;backgroundColor&quot;,&quot;green&quot;); 
&lt;/pre&gt;

or by defining in class
&lt;pre lang=&quot;actionscript3&quot;&gt;
accordion.getHeaderAt(0).setStyle(&quot;styleName&quot;,&quot;accordian1&quot;);
accordion.getHeaderAt(1).setStyle(&quot;styleName&quot;,&quot;accordian2&quot;);
&lt;/pre&gt;

with css code
&lt;pre lang=&quot;css&quot;&gt;
.accordian1{background-Color:green;}
.accordian2{background-Color:red;}
&lt;/pre&gt;

In both the cases each accordian header background color not changing.

Any help on this or other way around to do this.</description>
		<content:encoded><![CDATA[<p>hi, thanks for nice post,  i was looking for.</p>
<p>I want to change the each accordian header background color. I am trying to do with this code :</p>

<div class="wp_syntax"><div class="code"><pre class="actionscript3" style="font-family:monospace;"> accordion<span style="color: #000066; font-weight: bold;">.</span>getHeaderAt<span style="color: #000000;">&#40;</span><span style="color: #000000; font-weight:bold;">0</span><span style="color: #000000;">&#41;</span><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;backgroundColor&quot;</span><span style="color: #000066; font-weight: bold;">,</span><span style="color: #990000;">&quot;red&quot;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span> 
 accordion<span style="color: #000066; font-weight: bold;">.</span>getHeaderAt<span style="color: #000000;">&#40;</span><span style="color: #000000; font-weight:bold;">1</span><span style="color: #000000;">&#41;</span><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;backgroundColor&quot;</span><span style="color: #000066; font-weight: bold;">,</span><span style="color: #990000;">&quot;green&quot;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span></pre></div></div>

<p>or by defining in class</p>

<div class="wp_syntax"><div class="code"><pre class="actionscript3" style="font-family:monospace;">accordion<span style="color: #000066; font-weight: bold;">.</span>getHeaderAt<span style="color: #000000;">&#40;</span><span style="color: #000000; font-weight:bold;">0</span><span style="color: #000000;">&#41;</span><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;styleName&quot;</span><span style="color: #000066; font-weight: bold;">,</span><span style="color: #990000;">&quot;accordian1&quot;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
accordion<span style="color: #000066; font-weight: bold;">.</span>getHeaderAt<span style="color: #000000;">&#40;</span><span style="color: #000000; font-weight:bold;">1</span><span style="color: #000000;">&#41;</span><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;styleName&quot;</span><span style="color: #000066; font-weight: bold;">,</span><span style="color: #990000;">&quot;accordian2&quot;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span></pre></div></div>

<p>with css code</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;"><span style="color: #6666ff;">.accordian1</span><span style="color: #00AA00;">&#123;</span>background-Color<span style="color: #00AA00;">:</span><span style="color: #993333;">green</span><span style="color: #00AA00;">;</span><span style="color: #00AA00;">&#125;</span>
<span style="color: #6666ff;">.accordian2</span><span style="color: #00AA00;">&#123;</span>background-Color<span style="color: #00AA00;">:</span><span style="color: #993333;">red</span><span style="color: #00AA00;">;</span><span style="color: #00AA00;">&#125;</span></pre></div></div>

<p>In both the cases each accordian header background color not changing.</p>
<p>Any help on this or other way around to do this.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Peter</title>
		<link>http://blog.flexexamples.com/2007/10/26/customizing-the-accordion-header-in-flex-3/comment-page-1/#comment-5361</link>
		<dc:creator>Peter</dc:creator>
		<pubDate>Tue, 25 Aug 2009 21:37:02 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2007/10/26/customizing-the-accordion-header-in-flex-3/#comment-5361</guid>
		<description>hey there, 

im having an issue when applying styles to the accordion, the thing is that flex doesnt report any error but when i apply the style the application isnt loaded ... and not just the accordion with the custom style.... when testing the app it doesnt show a thing... 

PD: im new to flex development so my knowledge to solve this things is kinda limited  so thx in advance :) ... oh, the style changes are showing up in design view, guess that means something</description>
		<content:encoded><![CDATA[<p>hey there, </p>
<p>im having an issue when applying styles to the accordion, the thing is that flex doesnt report any error but when i apply the style the application isnt loaded &#8230; and not just the accordion with the custom style&#8230;. when testing the app it doesnt show a thing&#8230; </p>
<p>PD: im new to flex development so my knowledge to solve this things is kinda limited  so thx in advance :) &#8230; oh, the style changes are showing up in design view, guess that means something</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Peter deHaan</title>
		<link>http://blog.flexexamples.com/2007/10/26/customizing-the-accordion-header-in-flex-3/comment-page-1/#comment-1678</link>
		<dc:creator>Peter deHaan</dc:creator>
		<pubDate>Mon, 08 Jun 2009 14:17:42 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2007/10/26/customizing-the-accordion-header-in-flex-3/#comment-1678</guid>
		<description>dilip,

The following should work:
&lt;pre lang=&quot;mxml&quot;&gt;
&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
&lt;mx:Application name=&quot;Accordion_getHeaderAt_setStyle_color_test&quot;
        xmlns:mx=&quot;http://www.adobe.com/2006/mxml&quot;
        layout=&quot;vertical&quot;
        verticalAlign=&quot;top&quot;
        backgroundColor=&quot;white&quot;&gt;

    &lt;mx:Script&gt;
        &lt;![CDATA[
            import mx.controls.Button;
            import mx.events.FlexEvent;
            import mx.events.IndexChangedEvent;

            private function accordion_change(evt:IndexChangedEvent):void {
                accordion.getHeaderAt(evt.oldIndex).setStyle(&quot;color&quot;, &quot;black&quot;);
                accordion.getHeaderAt(evt.newIndex).setStyle(&quot;color&quot;, &quot;haloSilver&quot;);
            }

            private function accordion_creationComplete(evt:FlexEvent):void {
                accordion.getHeaderAt(accordion.selectedIndex).setStyle(&quot;color&quot;, &quot;haloSilver&quot;);
            }
        ]]&gt;
    &lt;/mx:Script&gt;

    &lt;mx:Style&gt;
        .accHeader {
            color: black;
            fillColors: haloSilver, haloSilver;
            fillAlphas: 1.0, 0.5;
            selectedFillColors: black, black;
        }
    &lt;/mx:Style&gt;

    &lt;mx:Accordion id=&quot;accordion&quot;
            headerStyleName=&quot;accHeader&quot;
            resizeToContent=&quot;true&quot;
            width=&quot;100%&quot;
            creationComplete=&quot;accordion_creationComplete(event);&quot;
            change=&quot;accordion_change(event);&quot;&gt;
        &lt;mx:VBox label=&quot;Red&quot;
                backgroundColor=&quot;red&quot;
                width=&quot;100%&quot;
                height=&quot;200&quot; /&gt;
        &lt;mx:VBox label=&quot;Orange&quot;
                backgroundColor=&quot;haloOrange&quot;
                width=&quot;100%&quot;
                height=&quot;120&quot; /&gt;
        &lt;mx:VBox label=&quot;Yellow&quot;
                backgroundColor=&quot;yellow&quot;
                width=&quot;100%&quot;
                height=&quot;160&quot; /&gt;
        &lt;mx:VBox label=&quot;Green&quot;
                backgroundColor=&quot;haloGreen&quot;
                width=&quot;100%&quot;
                height=&quot;80&quot; /&gt;
        &lt;mx:VBox label=&quot;Blue&quot;
                backgroundColor=&quot;haloBlue&quot;
                width=&quot;100%&quot;
                height=&quot;140&quot; /&gt;
    &lt;/mx:Accordion&gt;

&lt;/mx:Application&gt;
&lt;/pre&gt;

Peter</description>
		<content:encoded><![CDATA[<p>dilip,</p>
<p>The following should work:</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;mx:Application</span> name=<span style="color: #ff0000;">&quot;Accordion_getHeaderAt_setStyle_color_test&quot;</span></span>
<span style="color: #000000;">        xmlns:mx=<span style="color: #ff0000;">&quot;http://www.adobe.com/2006/mxml&quot;</span></span>
<span style="color: #000000;">        layout=<span style="color: #ff0000;">&quot;vertical&quot;</span></span>
<span style="color: #000000;">        verticalAlign=<span style="color: #ff0000;">&quot;top&quot;</span></span>
<span style="color: #000000;">        backgroundColor=<span style="color: #ff0000;">&quot;white&quot;</span><span style="color: #7400FF;">&gt;</span></span>
&nbsp;
    <span style="color: #339933;">&lt;mx:Script&gt;</span>
<span style="color: #339933;">        &lt;![CDATA[</span>
<span style="color: #339933;">            import mx.controls.Button;</span>
<span style="color: #339933;">            import mx.events.FlexEvent;</span>
<span style="color: #339933;">            import mx.events.IndexChangedEvent;</span>
&nbsp;
<span style="color: #339933;">            private function accordion_change(evt:IndexChangedEvent):void {</span>
<span style="color: #339933;">                accordion.getHeaderAt(evt.oldIndex).setStyle(&quot;color&quot;, &quot;black&quot;);</span>
<span style="color: #339933;">                accordion.getHeaderAt(evt.newIndex).setStyle(&quot;color&quot;, &quot;haloSilver&quot;);</span>
<span style="color: #339933;">            }</span>
&nbsp;
<span style="color: #339933;">            private function accordion_creationComplete(evt:FlexEvent):void {</span>
<span style="color: #339933;">                accordion.getHeaderAt(accordion.selectedIndex).setStyle(&quot;color&quot;, &quot;haloSilver&quot;);</span>
<span style="color: #339933;">            }</span>
<span style="color: #339933;">        ]]&gt;</span>
<span style="color: #339933;">    &lt;/mx:Script&gt;</span>
&nbsp;
    <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:Style</span><span style="color: #7400FF;">&gt;</span></span>
        .accHeader {
            color: black;
            fillColors: haloSilver, haloSilver;
            fillAlphas: 1.0, 0.5;
            selectedFillColors: black, black;
        }
    <span style="color: #000000;"><span style="color: #7400FF;">&lt;/mx: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;accordion&quot;</span></span>
<span style="color: #000000;">            headerStyleName=<span style="color: #ff0000;">&quot;accHeader&quot;</span></span>
<span style="color: #000000;">            resizeToContent=<span style="color: #ff0000;">&quot;true&quot;</span></span>
<span style="color: #000000;">            width=<span style="color: #ff0000;">&quot;100%&quot;</span></span>
<span style="color: #000000;">            creationComplete=<span style="color: #ff0000;">&quot;accordion_creationComplete(event);&quot;</span></span>
<span style="color: #000000;">            change=<span style="color: #ff0000;">&quot;accordion_change(event);&quot;</span><span style="color: #7400FF;">&gt;</span></span>
        <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:VBox</span> label=<span style="color: #ff0000;">&quot;Red&quot;</span></span>
<span style="color: #000000;">                backgroundColor=<span style="color: #ff0000;">&quot;red&quot;</span></span>
<span style="color: #000000;">                width=<span style="color: #ff0000;">&quot;100%&quot;</span></span>
<span style="color: #000000;">                height=<span style="color: #ff0000;">&quot;200&quot;</span> <span style="color: #7400FF;">/&gt;</span></span>
        <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:VBox</span> label=<span style="color: #ff0000;">&quot;Orange&quot;</span></span>
<span style="color: #000000;">                backgroundColor=<span style="color: #ff0000;">&quot;haloOrange&quot;</span></span>
<span style="color: #000000;">                width=<span style="color: #ff0000;">&quot;100%&quot;</span></span>
<span style="color: #000000;">                height=<span style="color: #ff0000;">&quot;120&quot;</span> <span style="color: #7400FF;">/&gt;</span></span>
        <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:VBox</span> label=<span style="color: #ff0000;">&quot;Yellow&quot;</span></span>
<span style="color: #000000;">                backgroundColor=<span style="color: #ff0000;">&quot;yellow&quot;</span></span>
<span style="color: #000000;">                width=<span style="color: #ff0000;">&quot;100%&quot;</span></span>
<span style="color: #000000;">                height=<span style="color: #ff0000;">&quot;160&quot;</span> <span style="color: #7400FF;">/&gt;</span></span>
        <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:VBox</span> label=<span style="color: #ff0000;">&quot;Green&quot;</span></span>
<span style="color: #000000;">                backgroundColor=<span style="color: #ff0000;">&quot;haloGreen&quot;</span></span>
<span style="color: #000000;">                width=<span style="color: #ff0000;">&quot;100%&quot;</span></span>
<span style="color: #000000;">                height=<span style="color: #ff0000;">&quot;80&quot;</span> <span style="color: #7400FF;">/&gt;</span></span>
        <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:VBox</span> label=<span style="color: #ff0000;">&quot;Blue&quot;</span></span>
<span style="color: #000000;">                backgroundColor=<span style="color: #ff0000;">&quot;haloBlue&quot;</span></span>
<span style="color: #000000;">                width=<span style="color: #ff0000;">&quot;100%&quot;</span></span>
<span style="color: #000000;">                height=<span style="color: #ff0000;">&quot;140&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;/mx:Application</span><span style="color: #7400FF;">&gt;</span></span></pre></div></div>

<p>Peter</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: matthew</title>
		<link>http://blog.flexexamples.com/2007/10/26/customizing-the-accordion-header-in-flex-3/comment-page-1/#comment-1677</link>
		<dc:creator>matthew</dc:creator>
		<pubDate>Mon, 08 Jun 2009 12:49:29 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2007/10/26/customizing-the-accordion-header-in-flex-3/#comment-1677</guid>
		<description>dilip: rtfm
it&#039;s all there</description>
		<content:encoded><![CDATA[<p>dilip: rtfm<br />
it&#8217;s all there</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ryan sun</title>
		<link>http://blog.flexexamples.com/2007/10/26/customizing-the-accordion-header-in-flex-3/comment-page-1/#comment-1679</link>
		<dc:creator>ryan sun</dc:creator>
		<pubDate>Mon, 27 Apr 2009 20:39:43 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2007/10/26/customizing-the-accordion-header-in-flex-3/#comment-1679</guid>
		<description>http://forums.adobe.com/thread/425201
way to set selected header text color</description>
		<content:encoded><![CDATA[<p><a href="http://forums.adobe.com/thread/425201" rel="nofollow">http://forums.adobe.com/thread/425201</a><br />
way to set selected header text color</p>
]]></content:encoded>
	</item>
</channel>
</rss>

