<?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: Changing text alignment in an Flex Accordion header</title>
	<link>http://blog.flexexamples.com/2007/09/13/changing-text-alignment-in-an-flex-accordion-header/</link>
	<description>A bunch of examples for Adobe Flex and ActionScript</description>
	<pubDate>Mon, 13 Oct 2008 11:53:37 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.2.1</generator>

	<item>
		<title>By: peterd</title>
		<link>http://blog.flexexamples.com/2007/09/13/changing-text-alignment-in-an-flex-accordion-header/#comment-15309</link>
		<author>peterd</author>
		<pubDate>Fri, 05 Sep 2008 23:50:16 +0000</pubDate>
		<guid>http://blog.flexexamples.com/2007/09/13/changing-text-alignment-in-an-flex-accordion-header/#comment-15309</guid>
		<description>nate haskins,

The code blocks were the default &#60;pre&#62; blocks for the Redoable WordPress theme. You can download the theme from http://www.deanjrobinson.com/wordpress/redoable/ and view the CSS code.

Peter</description>
		<content:encoded><![CDATA[<p>nate haskins,</p>
<p>The code blocks were the default &lt;pre&gt; blocks for the Redoable WordPress theme. You can download the theme from <a href="http://www.deanjrobinson.com/wordpress/redoable/" rel="nofollow">http://www.deanjrobinson.com/wordpress/redoable/</a> and view the CSS code.</p>
<p>Peter</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: nate haskins</title>
		<link>http://blog.flexexamples.com/2007/09/13/changing-text-alignment-in-an-flex-accordion-header/#comment-15308</link>
		<author>nate haskins</author>
		<pubDate>Fri, 05 Sep 2008 23:22:39 +0000</pubDate>
		<guid>http://blog.flexexamples.com/2007/09/13/changing-text-alignment-in-an-flex-accordion-header/#comment-15308</guid>
		<description>Hi thanks for the example it was quite helpful.... i was wondering how do you get those nice blocks in your posts for posting the code in????? thanks!</description>
		<content:encoded><![CDATA[<p>Hi thanks for the example it was quite helpful&#8230;. i was wondering how do you get those nice blocks in your posts for posting the code in????? thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ted</title>
		<link>http://blog.flexexamples.com/2007/09/13/changing-text-alignment-in-an-flex-accordion-header/#comment-3687</link>
		<author>Ted</author>
		<pubDate>Sun, 28 Oct 2007 16:14:07 +0000</pubDate>
		<guid>http://blog.flexexamples.com/2007/09/13/changing-text-alignment-in-an-flex-accordion-header/#comment-3687</guid>
		<description>Thanks for the detailed reply..

I found it strange when my changes were reflected in Flex Builder and not on my compiled swf.. 

By the way, am i right to say that (for Flex 3) all headerStyles are inherited from my header renderer, whether default(Button) or not?</description>
		<content:encoded><![CDATA[<p>Thanks for the detailed reply..</p>
<p>I found it strange when my changes were reflected in Flex Builder and not on my compiled swf.. </p>
<p>By the way, am i right to say that (for Flex 3) all headerStyles are inherited from my header renderer, whether default(Button) or not?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: peterd</title>
		<link>http://blog.flexexamples.com/2007/09/13/changing-text-alignment-in-an-flex-accordion-header/#comment-3685</link>
		<author>peterd</author>
		<pubDate>Sun, 28 Oct 2007 15:00:27 +0000</pubDate>
		<guid>http://blog.flexexamples.com/2007/09/13/changing-text-alignment-in-an-flex-accordion-header/#comment-3685</guid>
		<description>Ted,

Glad you asked. If you head over to the &lt;a href="http://livedocs.adobe.com/labs/flex3/langref/" rel="nofollow"&gt;&lt;u&gt;Flex 3 Beta LiveDocs&lt;u&gt;&lt;/a&gt;, you can either check out the &lt;a href="http://livedocs.adobe.com/labs/flex3/langref/mx/containers/Accordion.html" rel="nofollow"&gt;&lt;u&gt;Accordion&lt;/u&gt;&lt;/a&gt; page which will note whether a method, property, or style is deprecated, or there is a super-handy &lt;a href="http://livedocs.adobe.com/labs/flex3/langref/deprecated.html" rel="nofollow"&gt;"&lt;u&gt;List of deprecated elements&lt;/u&gt;"&lt;/a&gt; appendix which lists all deprecated items on a single page.

Oh, and to answer your question, if you want to specify Accordion header leftPadding [in Flex 3], you can use something like the following:
&lt;pre class="code"&gt;
&#60;?xml version="1.0" encoding="utf-8"?&#62;
&#60;mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
        layout="vertical"&#62;

    &#60;mx:Style&#62;
        .accHeader {
            paddingLeft: 130; /* pixels */
        }
    &#60;/mx:Style&#62;

    &#60;mx:Accordion headerStyleName="accHeader"
            width="100%"
            height="100%"&#62;
        &#60;mx:VBox label="One" /&#62;
        &#60;mx:VBox label="Two" /&#62;
        &#60;mx:VBox label="Three" /&#62;
        &#60;mx:VBox label="Four" /&#62;
    &#60;/mx:Accordion&#62;

&#60;/mx:Application&#62;
&lt;/pre&gt;

For more information, see &lt;a href="http://blog.flexexamples.com/2007/10/26/customizing-the-accordion-header-in-flex-3/" rel="nofollow"&gt;Customizing the Accordion header in Flex 3&lt;/a&gt;.

Hope that helps,

Peter</description>
		<content:encoded><![CDATA[<p>Ted,</p>
<p>Glad you asked. If you head over to the <a href="http://livedocs.adobe.com/labs/flex3/langref/" rel="nofollow"><u>Flex 3 Beta LiveDocs</u><u></u></a>, you can either check out the <a href="http://livedocs.adobe.com/labs/flex3/langref/mx/containers/Accordion.html" rel="nofollow"><u>Accordion</u></a> page which will note whether a method, property, or style is deprecated, or there is a super-handy <a href="http://livedocs.adobe.com/labs/flex3/langref/deprecated.html" rel="nofollow">&#8220;<u>List of deprecated elements</u>&#8220;</a> appendix which lists all deprecated items on a single page.</p>
<p>Oh, and to answer your question, if you want to specify Accordion header leftPadding [in Flex 3], you can use something like the following:</p>
<pre class="code">
&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
        layout="vertical"&gt;

    &lt;mx:Style&gt;
        .accHeader {
            paddingLeft: 130; /* pixels */
        }
    &lt;/mx:Style&gt;

    &lt;mx:Accordion headerStyleName="accHeader"
            width="100%"
            height="100%"&gt;
        &lt;mx:VBox label="One" /&gt;
        &lt;mx:VBox label="Two" /&gt;
        &lt;mx:VBox label="Three" /&gt;
        &lt;mx:VBox label="Four" /&gt;
    &lt;/mx:Accordion&gt;

&lt;/mx:Application&gt;
</pre>
<p>For more information, see <a href="http://blog.flexexamples.com/2007/10/26/customizing-the-accordion-header-in-flex-3/" rel="nofollow">Customizing the Accordion header in Flex 3</a>.</p>
<p>Hope that helps,</p>
<p>Peter</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ted</title>
		<link>http://blog.flexexamples.com/2007/09/13/changing-text-alignment-in-an-flex-accordion-header/#comment-3676</link>
		<author>Ted</author>
		<pubDate>Sun, 28 Oct 2007 09:09:22 +0000</pubDate>
		<guid>http://blog.flexexamples.com/2007/09/13/changing-text-alignment-in-an-flex-accordion-header/#comment-3676</guid>
		<description>Hi peter,

How can one find the deprecated styles for the header Style? i realised that paddingLeft does not register when i specify it in my header style.

I almost thought that it was a bug when i see it being reflected on my Flex Builder. Or am i wrong?</description>
		<content:encoded><![CDATA[<p>Hi peter,</p>
<p>How can one find the deprecated styles for the header Style? i realised that paddingLeft does not register when i specify it in my header style.</p>
<p>I almost thought that it was a bug when i see it being reflected on my Flex Builder. Or am i wrong?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Reza.h</title>
		<link>http://blog.flexexamples.com/2007/09/13/changing-text-alignment-in-an-flex-accordion-header/#comment-2234</link>
		<author>Reza.h</author>
		<pubDate>Sat, 15 Sep 2007 20:10:36 +0000</pubDate>
		<guid>http://blog.flexexamples.com/2007/09/13/changing-text-alignment-in-an-flex-accordion-header/#comment-2234</guid>
		<description>thanks peter
 I using flex 2.1</description>
		<content:encoded><![CDATA[<p>thanks peter<br />
 I using flex 2.1</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: peterd</title>
		<link>http://blog.flexexamples.com/2007/09/13/changing-text-alignment-in-an-flex-accordion-header/#comment-2226</link>
		<author>peterd</author>
		<pubDate>Sat, 15 Sep 2007 18:14:58 +0000</pubDate>
		<guid>http://blog.flexexamples.com/2007/09/13/changing-text-alignment-in-an-flex-accordion-header/#comment-2226</guid>
		<description>Reza.h,

Interesting, are you using Flex 201 or Flex 3 Beta?

Peter</description>
		<content:encoded><![CDATA[<p>Reza.h,</p>
<p>Interesting, are you using Flex 201 or Flex 3 Beta?</p>
<p>Peter</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Reza.h</title>
		<link>http://blog.flexexamples.com/2007/09/13/changing-text-alignment-in-an-flex-accordion-header/#comment-2209</link>
		<author>Reza.h</author>
		<pubDate>Sat, 15 Sep 2007 15:53:12 +0000</pubDate>
		<guid>http://blog.flexexamples.com/2007/09/13/changing-text-alignment-in-an-flex-accordion-header/#comment-2209</guid>
		<description>hi peter
Thanks for your post
When i try to compile your code, this error shown :
1118: Implicit coercion of a value with static type flash.events:Event to a possibly unrelated type mx.events:ListEvent.</description>
		<content:encoded><![CDATA[<p>hi peter<br />
Thanks for your post<br />
When i try to compile your code, this error shown :<br />
1118: Implicit coercion of a value with static type flash.events:Event to a possibly unrelated type mx.events:ListEvent.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: peterd</title>
		<link>http://blog.flexexamples.com/2007/09/13/changing-text-alignment-in-an-flex-accordion-header/#comment-2100</link>
		<author>peterd</author>
		<pubDate>Fri, 14 Sep 2007 14:00:48 +0000</pubDate>
		<guid>http://blog.flexexamples.com/2007/09/13/changing-text-alignment-in-an-flex-accordion-header/#comment-2100</guid>
		<description>Aasim,

I haven't tried either technique (yet), but I'm sure you could either extend the AccordionHeader class (in the mx.containers.accordionClasses package -- see &lt;a href="http://livedocs.adobe.com/labs/flex/3/langref/mx/containers/accordionClasses/AccordionHeader.html" rel="nofollow"&gt;Flex 3 Beta LiveDocs&lt;/a&gt;) and add whatever functionality you want, or possibly create a custom renderer of sorts.

You can find one example of the latter method (custom renderer) over at jlafferty's blog "&lt;u&gt;&lt;a href="http://butterfliesandbugs.wordpress.com/2007/07/20/using-a-headerrenderer-for-an-accordion/" rel="nofollow"&gt;Using a headerRenderer for an Accordion&lt;/a&gt;&lt;/u&gt;".

Sorry,
Peter</description>
		<content:encoded><![CDATA[<p>Aasim,</p>
<p>I haven&#8217;t tried either technique (yet), but I&#8217;m sure you could either extend the AccordionHeader class (in the mx.containers.accordionClasses package &#8212; see <a href="http://livedocs.adobe.com/labs/flex/3/langref/mx/containers/accordionClasses/AccordionHeader.html" rel="nofollow">Flex 3 Beta LiveDocs</a>) and add whatever functionality you want, or possibly create a custom renderer of sorts.</p>
<p>You can find one example of the latter method (custom renderer) over at jlafferty&#8217;s blog &#8220;<u><a href="http://butterfliesandbugs.wordpress.com/2007/07/20/using-a-headerrenderer-for-an-accordion/" rel="nofollow">Using a headerRenderer for an Accordion</a></u>&#8220;.</p>
<p>Sorry,<br />
Peter</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Aasim</title>
		<link>http://blog.flexexamples.com/2007/09/13/changing-text-alignment-in-an-flex-accordion-header/#comment-2081</link>
		<author>Aasim</author>
		<pubDate>Fri, 14 Sep 2007 06:59:23 +0000</pubDate>
		<guid>http://blog.flexexamples.com/2007/09/13/changing-text-alignment-in-an-flex-accordion-header/#comment-2081</guid>
		<description>Can we add button / text box in the accordion header? similar to the kind we can do to a panel by extending it.</description>
		<content:encoded><![CDATA[<p>Can we add button / text box in the accordion header? similar to the kind we can do to a panel by extending it.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
