<?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: Programmatically changing a Flex Accordion container&#8217;s selected child</title>
	<link>http://blog.flexexamples.com/2007/09/17/programmatically-changing-a-flex-accordion-containers-selected-child/</link>
	<description>A bunch of examples for Adobe Flex and ActionScript</description>
	<pubDate>Fri, 05 Dec 2008 11:27:16 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.2.1</generator>

	<item>
		<title>By: Stretch864020</title>
		<link>http://blog.flexexamples.com/2007/09/17/programmatically-changing-a-flex-accordion-containers-selected-child/#comment-11905</link>
		<author>Stretch864020</author>
		<pubDate>Sat, 12 Apr 2008 01:42:01 +0000</pubDate>
		<guid>http://blog.flexexamples.com/2007/09/17/programmatically-changing-a-flex-accordion-containers-selected-child/#comment-11905</guid>
		<description>Hi Peter,

how would you go about sequentially moving (back and forth) through the list of child elements using 'Next' and 'Previous' buttons? And, in this scenario is there a way to prevent an accordion item opening when the header is clicked? What I'm looking to do is control the accordion only by the Prev and Next buttons.

Stretch</description>
		<content:encoded><![CDATA[<p>Hi Peter,</p>
<p>how would you go about sequentially moving (back and forth) through the list of child elements using &#8216;Next&#8217; and &#8216;Previous&#8217; buttons? And, in this scenario is there a way to prevent an accordion item opening when the header is clicked? What I&#8217;m looking to do is control the accordion only by the Prev and Next buttons.</p>
<p>Stretch</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: BabyJoe</title>
		<link>http://blog.flexexamples.com/2007/09/17/programmatically-changing-a-flex-accordion-containers-selected-child/#comment-7427</link>
		<author>BabyJoe</author>
		<pubDate>Sun, 09 Mar 2008 03:59:09 +0000</pubDate>
		<guid>http://blog.flexexamples.com/2007/09/17/programmatically-changing-a-flex-accordion-containers-selected-child/#comment-7427</guid>
		<description>PeterD tried using your solution and it rocked although I did get the same error as dormouse at first.. then i came back here and got the answer to it immediately .. thanks again...</description>
		<content:encoded><![CDATA[<p>PeterD tried using your solution and it rocked although I did get the same error as dormouse at first.. then i came back here and got the answer to it immediately .. thanks again&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Aaron G. Abraham</title>
		<link>http://blog.flexexamples.com/2007/09/17/programmatically-changing-a-flex-accordion-containers-selected-child/#comment-5041</link>
		<author>Aaron G. Abraham</author>
		<pubDate>Thu, 13 Dec 2007 15:56:19 +0000</pubDate>
		<guid>http://blog.flexexamples.com/2007/09/17/programmatically-changing-a-flex-accordion-containers-selected-child/#comment-5041</guid>
		<description>yeah i was having the same problem as well... tnx..</description>
		<content:encoded><![CDATA[<p>yeah i was having the same problem as well&#8230; tnx..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dormouse</title>
		<link>http://blog.flexexamples.com/2007/09/17/programmatically-changing-a-flex-accordion-containers-selected-child/#comment-2536</link>
		<author>dormouse</author>
		<pubDate>Wed, 19 Sep 2007 04:59:11 +0000</pubDate>
		<guid>http://blog.flexexamples.com/2007/09/17/programmatically-changing-a-flex-accordion-containers-selected-child/#comment-2536</guid>
		<description>Thanks，it works.

I am using Flex 2.0,maybe it's the problem!</description>
		<content:encoded><![CDATA[<p>Thanks，it works.</p>
<p>I am using Flex 2.0,maybe it&#8217;s the problem!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: peterd</title>
		<link>http://blog.flexexamples.com/2007/09/17/programmatically-changing-a-flex-accordion-containers-selected-child/#comment-2475</link>
		<author>peterd</author>
		<pubDate>Tue, 18 Sep 2007 16:16:28 +0000</pubDate>
		<guid>http://blog.flexexamples.com/2007/09/17/programmatically-changing-a-flex-accordion-containers-selected-child/#comment-2475</guid>
		<description>dormouse,

The easiest fix would be to change this line:
&lt;pre class="code"&gt;
private function comboBox_change(evt:ListEvent):void {
&lt;/pre&gt;

To this:
&lt;pre class="code"&gt;
private function comboBox_change(evt:Event):void {
&lt;/pre&gt;

Note: I haven't tested this, but it should work.

I'll play around with this tonight after work and see if something changed between Flex 2.0.1 and Flex 3.

I assume you're using Flex 2.0.1, correct?

Peter</description>
		<content:encoded><![CDATA[<p>dormouse,</p>
<p>The easiest fix would be to change this line:</p>
<pre class="code">
private function comboBox_change(evt:ListEvent):void {
</pre>
<p>To this:</p>
<pre class="code">
private function comboBox_change(evt:Event):void {
</pre>
<p>Note: I haven&#8217;t tested this, but it should work.</p>
<p>I&#8217;ll play around with this tonight after work and see if something changed between Flex 2.0.1 and Flex 3.</p>
<p>I assume you&#8217;re using Flex 2.0.1, correct?</p>
<p>Peter</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dormouse</title>
		<link>http://blog.flexexamples.com/2007/09/17/programmatically-changing-a-flex-accordion-containers-selected-child/#comment-2446</link>
		<author>dormouse</author>
		<pubDate>Tue, 18 Sep 2007 09:35:42 +0000</pubDate>
		<guid>http://blog.flexexamples.com/2007/09/17/programmatically-changing-a-flex-accordion-containers-selected-child/#comment-2446</guid>
		<description>the problem:



1118: Implicit coercion of a value with static type flash.events:Event to a possibly unrelated type mx.events:ListEvent.

how to correct it?Thank you</description>
		<content:encoded><![CDATA[<p>the problem:</p>
<p>1118: Implicit coercion of a value with static type flash.events:Event to a possibly unrelated type mx.events:ListEvent.</p>
<p>how to correct it?Thank you</p>
]]></content:encoded>
	</item>
</channel>
</rss>
