<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Flex Examples &#187; selectedIndex</title>
	<atom:link href="http://blog.flexexamples.com/tag/selectedindex/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.flexexamples.com</link>
	<description>Just a bunch of Adobe Flex Examples</description>
	<lastBuildDate>Wed, 26 Jan 2011 18:09:51 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Checking that an item is selected in the Spark DropDownList control in Flex 4</title>
		<link>http://blog.flexexamples.com/2010/03/12/checking-that-an-item-is-selected-in-the-spark-dropdownlist-control-in-flex-4/</link>
		<comments>http://blog.flexexamples.com/2010/03/12/checking-that-an-item-is-selected-in-the-spark-dropdownlist-control-in-flex-4/#comments</comments>
		<pubDate>Sat, 13 Mar 2010 00:49:23 +0000</pubDate>
		<dc:creator>Peter deHaan</dc:creator>
				<category><![CDATA[DropDownList (Spark)]]></category>
		<category><![CDATA[Flex4]]></category>
		<category><![CDATA[NumberValidator]]></category>
		<category><![CDATA[Gumbo]]></category>
		<category><![CDATA[lowerThanMinError]]></category>
		<category><![CDATA[requiresSelection]]></category>
		<category><![CDATA[selectedIndex]]></category>

		<guid isPermaLink="false">http://blog.flexexamples.com/?p=2597</guid>
		<description><![CDATA[<p>The following example shows how you can check whether the user has selected an item in the Spark DropDownList control in Flex 4 by setting the Boolean requiresSelection property to true or using a NumberValidator to check the DropDownList control&#8217;s selectedIndex property is greater than -1.</p> <p></p> &#60;?xml version=&#34;1.0&#34; encoding=&#34;utf-8&#34;?&#62; &#60;!-- http://blog.flexexamples.com/2010/03/12/checking-that-an-item-is-selected-in-the-spark-dropdownlist-control-in-flex-4/ --&#62; &#60;s:Application name=&#34;Spark_DropDownList_requiresSelection_test&#34; [...]]]></description>
			<content:encoded><![CDATA[<p>The following example shows how you can check whether the user has selected an item in the Spark DropDownList control in Flex 4 by setting the Boolean <code>requiresSelection</code> property to <em>true</em> or using a NumberValidator to check the DropDownList control&#8217;s <code>selectedIndex</code> property is greater than -1.</p>
<p><span id="more-2597"></span></p>
<p class="alert">The following example(s) require Flash Player 10 and the Adobe Flex 4 SDK. To download the Adobe Flash Builder 4 trial, see <a href="http://bit.ly/crThlI">http://www.adobe.com/products/flex/</a>. To download the latest nightly build of the Flex 4 SDK, see <a href="http://bit.ly/Flex4SDK">http://opensource.adobe.com/wiki/display/flexsdk/Download+Flex+4</a>.<br/><strong>For more information on getting started with Flex 4 and Flash Builder 4, see the official <a href="http://bit.ly/dCkecm">Adobe Flex Team blog</a>.</strong></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/2010/03/12/checking-that-an-item-is-selected-in-the-spark-dropdownlist-control-in-flex-4/ --&gt;</span></span>
<span style="color: #000000;"><span style="color: #7400FF;">&lt;s:Application</span> name=<span style="color: #ff0000;">&quot;Spark_DropDownList_requiresSelection_test&quot;</span></span>
<span style="color: #000000;">        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> 
    <span style="color: #000000;"><span style="color: #7400FF;">&lt;s:layout</span><span style="color: #7400FF;">&gt;</span></span>
        <span style="color: #000000;"><span style="color: #7400FF;">&lt;s:HorizontalLayout</span> horizontalAlign=<span style="color: #ff0000;">&quot;center&quot;</span> verticalAlign=<span style="color: #ff0000;">&quot;middle&quot;</span> <span style="color: #7400FF;">/&gt;</span></span>
    <span style="color: #000000;"><span style="color: #7400FF;">&lt;/s:layout</span><span style="color: #7400FF;">&gt;</span></span>
&nbsp;
    <span style="color: #000000;"><span style="color: #7400FF;">&lt;s:DropDownList</span> id=<span style="color: #ff0000;">&quot;ddl&quot;</span> prompt=<span style="color: #ff0000;">&quot;Please select an item&quot;</span> requireSelection=<span style="color: #ff0000;">&quot;true&quot;</span><span style="color: #7400FF;">&gt;</span></span>
        <span style="color: #000000;"><span style="color: #7400FF;">&lt;s:dataProvider</span><span style="color: #7400FF;">&gt;</span></span>
            <span style="color: #000000;"><span style="color: #7400FF;">&lt;s:ArrayList</span> source=<span style="color: #ff0000;">&quot;[one,two,three,four,five,six,seven]&quot;</span> <span style="color: #7400FF;">/&gt;</span></span>
        <span style="color: #000000;"><span style="color: #7400FF;">&lt;/s:dataProvider</span><span style="color: #7400FF;">&gt;</span></span>
    <span style="color: #000000;"><span style="color: #7400FF;">&lt;/s:DropDownList</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 class="information"><a href="http://dl.dropbox.com/u/4509565/FlexExamples_com/Spark_DropDownList_requiresSelection_test/srcview/index.html">View source</a> is enabled in the following example.</p>
<p><iframe src="http://dl.dropbox.com/u/4509565/FlexExamples_com/Spark_DropDownList_requiresSelection_test/main.html" width="100%" height="300"></iframe></p>
<p>Or you can use a NumberValidator on the Spark DropDownList control to check that the <code>selectedIndex</code> property is greater than or equal to 0, 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/2010/03/12/checking-that-an-item-is-selected-in-the-spark-dropdownlist-control-in-flex-4/ --&gt;</span></span>
<span style="color: #000000;"><span style="color: #7400FF;">&lt;s:Application</span> name=<span style="color: #ff0000;">&quot;Spark_DropDownList_selectedIndex_NumberValidator_test&quot;</span></span>
<span style="color: #000000;">        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> 
    <span style="color: #000000;"><span style="color: #7400FF;">&lt;s:layout</span><span style="color: #7400FF;">&gt;</span></span>
        <span style="color: #000000;"><span style="color: #7400FF;">&lt;s:HorizontalLayout</span> horizontalAlign=<span style="color: #ff0000;">&quot;center&quot;</span> verticalAlign=<span style="color: #ff0000;">&quot;middle&quot;</span> <span style="color: #7400FF;">/&gt;</span></span>
    <span style="color: #000000;"><span style="color: #7400FF;">&lt;/s:layout</span><span style="color: #7400FF;">&gt;</span></span>
&nbsp;
    <span style="color: #000000;"><span style="color: #7400FF;">&lt;fx:Script</span><span style="color: #7400FF;">&gt;</span></span>
        <span style="color: #000000;">&lt;!<span style="color: #66cc66;">&#91;</span>CDATA<span style="color: #66cc66;">&#91;</span></span>
<span style="color: #000000;">            import mx.controls.Alert;</span>
<span style="color: #000000;">            import mx.events.ValidationResultEvent;</span>
&nbsp;
<span style="color: #000000;">            protected function button1_clickHandler<span style="color: #66cc66;">&#40;</span>evt:MouseEvent<span style="color: #66cc66;">&#41;</span>:void <span style="color: #66cc66;">&#123;</span></span>
<span style="color: #000000;">                numValidator.validate<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;</span>
<span style="color: #000000;">            <span style="color: #66cc66;">&#125;</span></span>
&nbsp;
<span style="color: #000000;">            protected function numValidator_validHandler<span style="color: #66cc66;">&#40;</span>evt:ValidationResultEvent<span style="color: #66cc66;">&#41;</span>:void <span style="color: #66cc66;">&#123;</span></span>
<span style="color: #000000;">                Alert.show<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;DropDownList item selected: &quot;</span> + ddl.selectedItem.toString<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>, evt.type<span style="color: #66cc66;">&#41;</span>;</span>
<span style="color: #000000;">            <span style="color: #66cc66;">&#125;</span></span>
&nbsp;
<span style="color: #000000;">            protected function numValidator_invalidHandler<span style="color: #66cc66;">&#40;</span>evt:ValidationResultEvent<span style="color: #66cc66;">&#41;</span>:void <span style="color: #66cc66;">&#123;</span></span>
<span style="color: #000000;">                Alert.show<span style="color: #66cc66;">&#40;</span>ddl.prompt, evt.type<span style="color: #66cc66;">&#41;</span>;</span>
<span style="color: #000000;">            <span style="color: #66cc66;">&#125;</span></span>
<span style="color: #000000;">        <span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#93;</span><span style="color: #7400FF;">&gt;</span></span>
    <span style="color: #000000;"><span style="color: #7400FF;">&lt;/fx:Script</span><span style="color: #7400FF;">&gt;</span></span>
&nbsp;
    <span style="color: #000000;"><span style="color: #7400FF;">&lt;fx:Declarations</span><span style="color: #7400FF;">&gt;</span></span>
        <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:NumberValidator</span> id=<span style="color: #ff0000;">&quot;numValidator&quot;</span></span>
<span style="color: #000000;">                source=<span style="color: #ff0000;">&quot;{ddl}&quot;</span></span>
<span style="color: #000000;">                property=<span style="color: #ff0000;">&quot;selectedIndex&quot;</span></span>
<span style="color: #000000;">                minValue=<span style="color: #ff0000;">&quot;0&quot;</span></span>
<span style="color: #000000;">                lowerThanMinError=<span style="color: #ff0000;">&quot;{ddl.prompt}&quot;</span></span>
<span style="color: #000000;">                valid=<span style="color: #ff0000;">&quot;numValidator_validHandler(event);&quot;</span></span>
<span style="color: #000000;">                invalid=<span style="color: #ff0000;">&quot;numValidator_invalidHandler(event);&quot;</span> <span style="color: #7400FF;">/&gt;</span></span>
    <span style="color: #000000;"><span style="color: #7400FF;">&lt;/fx:Declarations</span><span style="color: #7400FF;">&gt;</span></span>
&nbsp;
    <span style="color: #000000;"><span style="color: #7400FF;">&lt;s:DropDownList</span> id=<span style="color: #ff0000;">&quot;ddl&quot;</span> prompt=<span style="color: #ff0000;">&quot;Please select an item&quot;</span><span style="color: #7400FF;">&gt;</span></span>
        <span style="color: #000000;"><span style="color: #7400FF;">&lt;s:dataProvider</span><span style="color: #7400FF;">&gt;</span></span>
            <span style="color: #000000;"><span style="color: #7400FF;">&lt;s:ArrayList</span> source=<span style="color: #ff0000;">&quot;[one,two,three,four,five,six,seven]&quot;</span> <span style="color: #7400FF;">/&gt;</span></span>
        <span style="color: #000000;"><span style="color: #7400FF;">&lt;/s:dataProvider</span><span style="color: #7400FF;">&gt;</span></span>
    <span style="color: #000000;"><span style="color: #7400FF;">&lt;/s:DropDownList</span><span style="color: #7400FF;">&gt;</span></span>
&nbsp;
    <span style="color: #000000;"><span style="color: #7400FF;">&lt;s:Button</span> label=<span style="color: #ff0000;">&quot;validate&quot;</span> click=<span style="color: #ff0000;">&quot;button1_clickHandler(event);&quot;</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 class="information"><a href="http://dl.dropbox.com/u/4509565/FlexExamples_com/Spark_DropDownList_requiresSelection_test/srcview/index.html">View source</a> is enabled in the following example.</p>
<p><iframe src="http://dl.dropbox.com/u/4509565/FlexExamples_com/Spark_DropDownList_requiresSelection_test/main2.html" width="100%" height="300"></iframe></p>
<p class="alert">This entry is based on a beta version of the Flex 4 SDK and therefore is very likely to change as development of the Flex SDK continues. The API can (and will) change causing examples to possibly not compile in newer versions of the Flex 4 SDK.</p>
<div class="evernoteSiteMemory"><a href="javascript:" onclick="Evernote.doClip({title: 'Checking that an item is selected in the Spark DropDownList control in Flex 4 on FlexExamples.com',url: 'http://blog.flexexamples.com/2010/03/12/checking-that-an-item-is-selected-in-the-spark-dropdownlist-control-in-flex-4/',contentID: 'post-2597',code: 'Pete9667',suggestNotebook: 'FlexExamples',suggestTags: 'Gumbo,lowerThanMinError,requiresSelection,selectedIndex',providerName: 'FlexExamples.com',styling: 'text' });return false" class="evernoteSiteMemoryLink"><img src="http://static.evernote.com/article-clipper-remember.png" class="evernoteSiteMemoryButton" />
				</a>				<div class="evernoteSiteMemoryClear">&nbsp;</div>
</div>]]></content:encoded>
			<wfw:commentRss>http://blog.flexexamples.com/2010/03/12/checking-that-an-item-is-selected-in-the-spark-dropdownlist-control-in-flex-4/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Setting the selected index on the Spark ButtonBar control in Flex 4</title>
		<link>http://blog.flexexamples.com/2009/02/21/setting-the-selected-index-on-the-fxbuttonbar-control-in-flex-gumbo/</link>
		<comments>http://blog.flexexamples.com/2009/02/21/setting-the-selected-index-on-the-fxbuttonbar-control-in-flex-gumbo/#comments</comments>
		<pubDate>Sun, 22 Feb 2009 05:18:46 +0000</pubDate>
		<dc:creator>Peter deHaan</dc:creator>
				<category><![CDATA[beta2]]></category>
		<category><![CDATA[ButtonBar (Spark)]]></category>
		<category><![CDATA[Gumbo]]></category>
		<category><![CDATA[requireSelection]]></category>
		<category><![CDATA[selectedIndex]]></category>

		<guid isPermaLink="false">http://blog.flexexamples.com/2009/02/21/setting-the-selected-index-on-the-fxbuttonbar-control-in-flex-gumbo/</guid>
		<description><![CDATA[<p>The following example shows how you can set the selected index on a Spark ButtonBar control in Flex 4 by setting the selectedIndex property.</p> <p>Full code after the jump.</p> <p></p> &#60;?xml version=&#34;1.0&#34; encoding=&#34;utf-8&#34;?&#62; &#60;!-- http://blog.flexexamples.com/2009/02/21/setting-the-selected-index-on-the-fxbuttonbar-control-in-flex-gumbo/ --&#62; &#60;s:Application name=&#34;Spark_ButtonBar_selectedIndex_test&#34; xmlns:fx=&#34;http://ns.adobe.com/mxml/2009&#34; xmlns:s=&#34;library://ns.adobe.com/flex/spark&#34; xmlns:mx=&#34;library://ns.adobe.com/flex/mx&#34;&#62; &#60;s:controlBarContent&#62; &#60;mx:Form&#62; &#60;mx:FormItem label=&#34;requiresSelection:&#34;&#62; &#60;s:CheckBox id=&#34;checkBox&#34; /&#62; &#60;/mx:FormItem&#62; &#60;mx:FormItem label=&#34;selectedIndex:&#34; direction=&#34;horizontal&#34;&#62; &#60;s:HSlider id=&#34;slider&#34; minimum=&#34;-1&#34; [...]]]></description>
			<content:encoded><![CDATA[<p>The following example shows how you can set the selected index on a Spark ButtonBar control in Flex 4 by setting the <code>selectedIndex</code> property.</p>
<p>Full code after the jump.</p>
<p><span id="more-971"></span></p>
<p class="alert">The following example(s) require Flash Player 10 and the Adobe Flex 4 SDK. To download the Adobe Flash Builder 4 trial, see <a href="http://bit.ly/crThlI">http://www.adobe.com/products/flex/</a>. To download the latest nightly build of the Flex 4 SDK, see <a href="http://bit.ly/Flex4SDK">http://opensource.adobe.com/wiki/display/flexsdk/Download+Flex+4</a>.<br/><strong>For more information on getting started with Flex 4 and Flash Builder 4, see the official <a href="http://bit.ly/dCkecm">Adobe Flex Team blog</a>.</strong></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/2009/02/21/setting-the-selected-index-on-the-fxbuttonbar-control-in-flex-gumbo/ --&gt;</span></span>
<span style="color: #000000;"><span style="color: #7400FF;">&lt;s:Application</span> name=<span style="color: #ff0000;">&quot;Spark_ButtonBar_selectedIndex_test&quot;</span></span>
<span style="color: #000000;">        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>
    <span style="color: #000000;"><span style="color: #7400FF;">&lt;s:controlBarContent</span><span style="color: #7400FF;">&gt;</span></span>
        <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:Form</span><span style="color: #7400FF;">&gt;</span></span>
            <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:FormItem</span> label=<span style="color: #ff0000;">&quot;requiresSelection:&quot;</span><span style="color: #7400FF;">&gt;</span></span>
                <span style="color: #000000;"><span style="color: #7400FF;">&lt;s:CheckBox</span> id=<span style="color: #ff0000;">&quot;checkBox&quot;</span> <span style="color: #7400FF;">/&gt;</span></span>
            <span style="color: #000000;"><span style="color: #7400FF;">&lt;/mx:FormItem</span><span style="color: #7400FF;">&gt;</span></span>
            <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:FormItem</span> label=<span style="color: #ff0000;">&quot;selectedIndex:&quot;</span></span>
<span style="color: #000000;">                         direction=<span style="color: #ff0000;">&quot;horizontal&quot;</span><span style="color: #7400FF;">&gt;</span></span>
                <span style="color: #000000;"><span style="color: #7400FF;">&lt;s:HSlider</span> id=<span style="color: #ff0000;">&quot;slider&quot;</span></span>
<span style="color: #000000;">                           minimum=<span style="color: #ff0000;">&quot;-1&quot;</span></span>
<span style="color: #000000;">                           maximum=<span style="color: #ff0000;">&quot;5&quot;</span> <span style="color: #7400FF;">/&gt;</span></span>
                <span style="color: #000000;"><span style="color: #7400FF;">&lt;s:Label</span> text=<span style="color: #ff0000;">&quot;{btnBar.selectedIndex}&quot;</span> <span style="color: #7400FF;">/&gt;</span></span>
            <span style="color: #000000;"><span style="color: #7400FF;">&lt;/mx:FormItem</span><span style="color: #7400FF;">&gt;</span></span>
        <span style="color: #000000;"><span style="color: #7400FF;">&lt;/mx:Form</span><span style="color: #7400FF;">&gt;</span></span>
    <span style="color: #000000;"><span style="color: #7400FF;">&lt;/s:controlBarContent</span><span style="color: #7400FF;">&gt;</span></span>
&nbsp;
    <span style="color: #000000;"><span style="color: #7400FF;">&lt;s:ButtonBar</span> id=<span style="color: #ff0000;">&quot;btnBar&quot;</span></span>
<span style="color: #000000;">                 selectedIndex=<span style="color: #ff0000;">&quot;@{slider.value}&quot;</span></span>
<span style="color: #000000;">                 requireSelection=<span style="color: #ff0000;">&quot;{checkBox.selected}&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:dataProvider</span><span style="color: #7400FF;">&gt;</span></span>
            <span style="color: #000000;"><span style="color: #7400FF;">&lt;s:ArrayList</span> source=<span style="color: #ff0000;">&quot;[One,Two,Three,Four,Five,Six]&quot;</span> <span style="color: #7400FF;">/&gt;</span></span>
        <span style="color: #000000;"><span style="color: #7400FF;">&lt;/s:dataProvider</span><span style="color: #7400FF;">&gt;</span></span>
    <span style="color: #000000;"><span style="color: #7400FF;">&lt;/s:ButtonBar</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 class="alert">This entry is based on a beta version of the Flex 4 SDK and therefore is very likely to change as development of the Flex SDK continues. The API can (and will) change causing examples to possibly not compile in newer versions of the Flex 4 SDK.</p>
<div class="evernoteSiteMemory"><a href="javascript:" onclick="Evernote.doClip({title: 'Setting the selected index on the Spark ButtonBar control in Flex 4 on FlexExamples.com',url: 'http://blog.flexexamples.com/2009/02/21/setting-the-selected-index-on-the-fxbuttonbar-control-in-flex-gumbo/',contentID: 'post-971',code: 'Pete9667',suggestNotebook: 'FlexExamples',suggestTags: 'Gumbo,requireSelection,selectedIndex',providerName: 'FlexExamples.com',styling: 'text' });return false" class="evernoteSiteMemoryLink"><img src="http://static.evernote.com/article-clipper-remember.png" class="evernoteSiteMemoryButton" />
				</a>				<div class="evernoteSiteMemoryClear">&nbsp;</div>
</div>]]></content:encoded>
			<wfw:commentRss>http://blog.flexexamples.com/2009/02/21/setting-the-selected-index-on-the-fxbuttonbar-control-in-flex-gumbo/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Using the FxButtonBar control in Flex Gumbo</title>
		<link>http://blog.flexexamples.com/2009/02/08/using-the-fxbuttonbar-control-in-flex-gumbo/</link>
		<comments>http://blog.flexexamples.com/2009/02/08/using-the-fxbuttonbar-control-in-flex-gumbo/#comments</comments>
		<pubDate>Mon, 09 Feb 2009 06:23:49 +0000</pubDate>
		<dc:creator>Peter deHaan</dc:creator>
				<category><![CDATA[beta]]></category>
		<category><![CDATA[FxButtonBar]]></category>
		<category><![CDATA[dataProvider]]></category>
		<category><![CDATA[Gumbo]]></category>
		<category><![CDATA[selectedIndex]]></category>
		<category><![CDATA[selectedItem]]></category>

		<guid isPermaLink="false">http://blog.flexexamples.com/2009/02/08/using-the-fxbuttonbar-control-in-flex-gumbo/</guid>
		<description><![CDATA[<p>The following example shows how you can use the Flex Gumbo FxButtonBar by setting the dataProvider property to an ArrayCollection object.</p> <p>Full code after the jump.</p> <p></p> <p class="alert">To use the following code, you must have Flash Player 10 and a Flex Gumbo SDK installed in your Flex Builder 3. For more information on downloading [...]]]></description>
			<content:encoded><![CDATA[<p>The following example shows how you can use the Flex Gumbo FxButtonBar by setting the <code>dataProvider</code> property to an ArrayCollection object.</p>
<p>Full code after the jump.</p>
<p><span id="more-957"></span></p>
<p class="alert">To use the following code, you must have Flash Player 10 and a Flex Gumbo SDK installed in your Flex Builder 3. For more information on downloading and installing the Gumbo SDK into Flex Builder 3, see <a href="http://blog.flexexamples.com/2008/08/02/using-the-beta-gumbo-sdk-in-flex-builder-3/">&#8220;Using the beta Gumbo SDK in Flex Builder 3&#8243;</a>.</p>
<p class="download"><a href="">View MXML</a></p>
<pre class="code">
&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;!-- http://blog.flexexamples.com/2009/02/08/using-the-fxbuttonbar-control-in-flex-gumbo/ --&gt;
&lt;Application name="FxButtonBar_test"
        xmlns="http://ns.adobe.com/mxml/2009"
        layout="vertical"
        verticalAlign="middle"
        backgroundColor="white"&gt;

    &lt;Script&gt;
        &lt;![CDATA[
            import mx.utils.ObjectUtil;
        ]]&gt;
    &lt;/Script&gt;

    &lt;Declarations&gt;
        &lt;ArrayCollection id="arrColl"
                source="[One,Two,Three,Four,Five]" /&gt;
    &lt;/Declarations&gt;

    &lt;ApplicationControlBar dock="true"&gt;
        &lt;Form styleName="plain"&gt;
            &lt;FormItem label="selectedIndex:"&gt;
                &lt;Label text="{btnBar.selectedIndex}" /&gt;
            &lt;/FormItem&gt;
            &lt;FormItem label="selectedItem:"&gt;
                &lt;Label text="{ObjectUtil.toString(btnBar.selectedItem)}" /&gt;
            &lt;/FormItem&gt;
        &lt;/Form&gt;
    &lt;/ApplicationControlBar&gt;

    &lt;FxButtonBar id="btnBar"
            dataProvider="{arrColl}" /&gt;

&lt;/Application&gt;
</pre>
<p class="information"><a href="http://blog.flexexamples.com/wp-content/uploads/FxButtonBar_test/bin/srcview/">View source</a> is enabled in the following example.</p>
<p><iframe src="http://blog.flexexamples.com/wp-content/uploads/FxButtonBar_test/bin/main_4878.html" width="100%" height="200"></iframe></p>
<p>You can also set the <code>dataProvider</code> property inline in MXML using the following example:</p>
<p class="download"><a href="">View MXML</a></p>
<pre class="code">
&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;!-- http://blog.flexexamples.com/2009/02/08/using-the-fxbuttonbar-control-in-flex-gumbo/ --&gt;
&lt;Application name="FxButtonBar_test"
        xmlns="http://ns.adobe.com/mxml/2009"
        layout="vertical"
        verticalAlign="middle"
        backgroundColor="white"&gt;

    &lt;Script&gt;
        &lt;![CDATA[
            import mx.utils.ObjectUtil;
        ]]&gt;
    &lt;/Script&gt;

    &lt;ApplicationControlBar dock="true"&gt;
        &lt;Form styleName="plain"&gt;
            &lt;FormItem label="selectedIndex:"&gt;
                &lt;Label text="{btnBar.selectedIndex}" /&gt;
            &lt;/FormItem&gt;
            &lt;FormItem label="selectedItem:"&gt;
                &lt;Label text="{ObjectUtil.toString(btnBar.selectedItem)}" /&gt;
            &lt;/FormItem&gt;
        &lt;/Form&gt;
    &lt;/ApplicationControlBar&gt;

    &lt;FxButtonBar id="btnBar"&gt;
        &lt;dataProvider&gt;
            &lt;ArrayCollection source="[One,Two,Three,Four,Five]" /&gt;
        &lt;/dataProvider&gt;
    &lt;/FxButtonBar&gt;

&lt;/Application&gt;
</pre>
<p>Or, you can set the <code>dataProvider</code> property using ActionScript, as seen in the following example:</p>
<p class="download"><a href="">View MXML</a></p>
<pre class="code">
&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;!-- http://blog.flexexamples.com/2009/02/08/using-the-fxbuttonbar-control-in-flex-gumbo/ --&gt;
&lt;Application name="FxButtonBar_test"
        xmlns="http://ns.adobe.com/mxml/2009"
        layout="vertical"
        verticalAlign="middle"
        backgroundColor="white"&gt;

    &lt;Script&gt;
        &lt;![CDATA[
            import mx.utils.ObjectUtil;
            import mx.collections.ArrayCollection;

            private var arrColl:ArrayCollection;

            private function init():void {
                var arr:Array = ["One", "Two", "Three", "Four", "Five"];
                arrColl = new ArrayCollection(arr);
                btnBar.dataProvider = arrColl;
            }
        ]]&gt;
    &lt;/Script&gt;

    &lt;ApplicationControlBar dock="true"&gt;
        &lt;Form styleName="plain"&gt;
            &lt;FormItem label="selectedIndex:"&gt;
                &lt;Label text="{btnBar.selectedIndex}" /&gt;
            &lt;/FormItem&gt;
            &lt;FormItem label="selectedItem:"&gt;
                &lt;Label text="{ObjectUtil.toString(btnBar.selectedItem)}" /&gt;
            &lt;/FormItem&gt;
        &lt;/Form&gt;
    &lt;/ApplicationControlBar&gt;

    &lt;FxButtonBar id="btnBar"
            initialize="init();" /&gt;

&lt;/Application&gt;
</pre>
<p class="alert">This entry is based on a beta version of the Flex Gumbo SDK and therefore is very likely to change as development of the Flex SDK continues. The API can (and will) change causing examples to possibly not compile in newer versions of the Flex Gumbo SDK.</p>
<div class="evernoteSiteMemory"><a href="javascript:" onclick="Evernote.doClip({title: 'Using the FxButtonBar control in Flex Gumbo on FlexExamples.com',url: 'http://blog.flexexamples.com/2009/02/08/using-the-fxbuttonbar-control-in-flex-gumbo/',contentID: 'post-957',code: 'Pete9667',suggestNotebook: 'FlexExamples',suggestTags: 'dataProvider,Gumbo,selectedIndex,selectedItem',providerName: 'FlexExamples.com',styling: 'text' });return false" class="evernoteSiteMemoryLink"><img src="http://static.evernote.com/article-clipper-remember.png" class="evernoteSiteMemoryButton" />
				</a>				<div class="evernoteSiteMemoryClear">&nbsp;</div>
</div>]]></content:encoded>
			<wfw:commentRss>http://blog.flexexamples.com/2009/02/08/using-the-fxbuttonbar-control-in-flex-gumbo/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Setting a prompt on a ComboBox control in Flex</title>
		<link>http://blog.flexexamples.com/2008/06/01/setting-a-prompt-on-a-combobox-control-in-flex/</link>
		<comments>http://blog.flexexamples.com/2008/06/01/setting-a-prompt-on-a-combobox-control-in-flex/#comments</comments>
		<pubDate>Sun, 01 Jun 2008 13:43:16 +0000</pubDate>
		<dc:creator>Peter deHaan</dc:creator>
				<category><![CDATA[ComboBox]]></category>
		<category><![CDATA[prompt]]></category>
		<category><![CDATA[selectedIndex]]></category>

		<guid isPermaLink="false">http://blog.flexexamples.com/2008/06/01/setting-a-prompt-on-a-combobox-control-in-flex/</guid>
		<description><![CDATA[<p>The following example shows how you can set a prompt on a Flex ComboBox control by setting the prompt property.</p> <p>Full code after the jump.</p> <p></p> <p class="note">You can reset a ComboBox control so that its prompt message is visible again by setting the selectedIndex property to -1.</p> <p class="download"><a href="http://blog.flexexamples.com/wp-content/uploads/ComboBox_prompt_test/bin/srcview/source/main.mxml.html">View MXML</a></p> &#60;?xml version="1.0" encoding="utf-8"?&#62; [...]]]></description>
			<content:encoded><![CDATA[<p>The following example shows how you can set a prompt on a Flex ComboBox control by setting the <code>prompt</code> property.</p>
<p>Full code after the jump.</p>
<p><span id="more-654"></span></p>
<p class="note">You can reset a ComboBox control so that its prompt message is visible again by setting the <code>selectedIndex</code> property to -1.</p>
<p class="download"><a href="http://blog.flexexamples.com/wp-content/uploads/ComboBox_prompt_test/bin/srcview/source/main.mxml.html">View MXML</a></p>
<pre class="code">
&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;!-- http://blog.flexexamples.com/2008/06/01/setting-a-prompt-on-a-combobox-control-in-flex/ --&gt;
&lt;mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
        layout="vertical"
        verticalAlign="top"
        backgroundColor="white"&gt;

    &lt;mx:Array id="arr"&gt;
        &lt;mx:Object abbrev="AL" name="Alabama" /&gt;
        &lt;mx:Object abbrev="AK" name="Alaska" /&gt;
        &lt;mx:Object abbrev="AZ" name="Arizona" /&gt;
        &lt;mx:Object abbrev="AR" name="Arkansas" /&gt;
        &lt;mx:Object abbrev="CA" name="California" /&gt;
        &lt;mx:Object abbrev="CO" name="Colorado" /&gt;
        &lt;mx:Object abbrev="CT" name="Connecticut" /&gt;
    &lt;/mx:Array&gt;

    &lt;mx:ApplicationControlBar dock="true"&gt;
        &lt;mx:Button id="button"
                label="Reset ComboBox"
                click="comboBox.selectedIndex = -1;" /&gt;
    &lt;/mx:ApplicationControlBar&gt;

    &lt;mx:ComboBox id="comboBox"
            dataProvider="{arr}"
            labelField="name"
            prompt="Please select a state..." /&gt;

&lt;/mx:Application&gt;
</pre>
<p class="information"><a href="http://blog.flexexamples.com/wp-content/uploads/ComboBox_prompt_test/bin/srcview/index.html">View source</a> is enabled in the following example.</p>
<p><iframe src="http://blog.flexexamples.com/wp-content/uploads/ComboBox_prompt_test/bin/main.html" width="100%" height="250"></iframe></p>
<p>Due to popular demand, here is the &#8220;same&#8221; example in a more ActionScript friendly format:</p>
<p class="download"><a href="http://blog.flexexamples.com/wp-content/uploads/ComboBox_prompt_test/bin/srcview/source/main2.mxml.html">View MXML</a></p>
<pre class="code">
&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;!-- http://blog.flexexamples.com/2008/06/01/setting-a-prompt-on-a-combobox-control-in-flex/ --&gt;
&lt;mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
        layout="vertical"
        verticalAlign="top"
        backgroundColor="white"
        initialize="init();"&gt;

    &lt;mx:Script&gt;
        &lt;![CDATA[
            import mx.controls.ComboBox;
            import mx.controls.Button;
            import mx.containers.ApplicationControlBar;

            private var arr:Array;
            private var appControlBar:ApplicationControlBar;
            private var button:Button;
            private var comboBox:ComboBox;

            private function init():void {
                arr = [];
                arr.push({abbrev:"AL", name:"Alabama"});
                arr.push({abbrev:"AK", name:"Alaska"});
                arr.push({abbrev:"AZ", name:"Arizona"});
                arr.push({abbrev:"AR", name:"Arkansas"});
                arr.push({abbrev:"CA", name:"California"});
                arr.push({abbrev:"CO", name:"Colorado"});
                arr.push({abbrev:"CT", name:"Connecticut"});

                button = new Button();
                button.label = "Reset ComboBox";
                button.addEventListener(MouseEvent.CLICK, button_click);

                appControlBar = new ApplicationControlBar();
                appControlBar.dock = true;
                appControlBar.addChild(button);
                Application.application.addChildAt(appControlBar, 0);

                comboBox = new ComboBox();
                comboBox.dataProvider = arr;
                comboBox.labelField = "name";
                comboBox.prompt = "Please select a state...";
                addChild(comboBox);
            }

            private function button_click(evt:MouseEvent):void {
                comboBox.selectedIndex = -1;
            }
        ]]&gt;
    &lt;/mx:Script&gt;

&lt;/mx:Application&gt;
</pre>
<div class="evernoteSiteMemory"><a href="javascript:" onclick="Evernote.doClip({title: 'Setting a prompt on a ComboBox control in Flex on FlexExamples.com',url: 'http://blog.flexexamples.com/2008/06/01/setting-a-prompt-on-a-combobox-control-in-flex/',contentID: 'post-654',code: 'Pete9667',suggestNotebook: 'FlexExamples',suggestTags: 'prompt,selectedIndex',providerName: 'FlexExamples.com',styling: 'text' });return false" class="evernoteSiteMemoryLink"><img src="http://static.evernote.com/article-clipper-remember.png" class="evernoteSiteMemoryButton" />
				</a>				<div class="evernoteSiteMemoryClear">&nbsp;</div>
</div>]]></content:encoded>
			<wfw:commentRss>http://blog.flexexamples.com/2008/06/01/setting-a-prompt-on-a-combobox-control-in-flex/feed/</wfw:commentRss>
		<slash:comments>15</slash:comments>
		</item>
		<item>
		<title>Preventing users from clicking on an Accordion container&#8217;s header in Flex</title>
		<link>http://blog.flexexamples.com/2008/05/30/preventing-users-from-clicking-on-an-accordion-containers-header-in-flex/</link>
		<comments>http://blog.flexexamples.com/2008/05/30/preventing-users-from-clicking-on-an-accordion-containers-header-in-flex/#comments</comments>
		<pubDate>Sat, 31 May 2008 06:19:48 +0000</pubDate>
		<dc:creator>Peter deHaan</dc:creator>
				<category><![CDATA[Accordion]]></category>
		<category><![CDATA[AccordionHeader]]></category>
		<category><![CDATA[headerRenderer]]></category>
		<category><![CDATA[mouseEnabled]]></category>
		<category><![CDATA[selectedIndex]]></category>

		<guid isPermaLink="false">http://blog.flexexamples.com/2008/05/30/preventing-users-from-clicking-on-an-accordion-containers-header-in-flex/</guid>
		<description><![CDATA[<p>The following examples show how you can prevent a user from clicking a Flex Accordion container&#8217;s header by creating a custom Accordion header renderer.</p> <p>Full code after the jump.</p> <p></p> <p>The following example uses a custom header renderer (MyAccHeader) which sets the header&#8217;s mouseEnabled property to false, preventing the user from changing the currently selected [...]]]></description>
			<content:encoded><![CDATA[<p>The following examples show how you can prevent a user from clicking a Flex Accordion container&#8217;s header by creating a custom Accordion header renderer.</p>
<p>Full code after the jump.</p>
<p><span id="more-651"></span></p>
<p>The following example uses a custom header renderer (MyAccHeader) which sets the header&#8217;s <code>mouseEnabled</code> property to <code>false</code>, preventing the user from changing the currently selected accordion child by clicking on the header. Instead, users are forced to change the active child by clicking the next and previous buttons.</p>
<p class="download"><a href="http://blog.flexexamples.com/wp-content/uploads/Accordion_headerRenderer_test_2/bin/srcview/source/main.mxml.html">View MXML</a></p>
<pre class="code">
&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;!-- http://blog.flexexamples.com/2008/05/30/preventing-users-from-clicking-on-an-accordion-containers-header-in-flex/ --&gt;
&lt;mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
        layout="vertical"
        verticalAlign="middle"
        backgroundColor="white"&gt;

    &lt;mx:Script&gt;
        &lt;![CDATA[
            private function prevChild():void {
                accordion.selectedIndex--;
            }

            private function nextChild():void {
                accordion.selectedIndex++;
            }
        ]]&gt;
    &lt;/mx:Script&gt;

    &lt;mx:Accordion id="accordion"
            headerRenderer="comps.MyAccHeader"
            width="100%" height="100%"&gt;
        &lt;mx:VBox id="v1" label="One" width="100%" height="100%"&gt;
            &lt;mx:VBox width="100%" height="100%"&gt;
                &lt;mx:Label text="One" /&gt;
            &lt;/mx:VBox&gt;
            &lt;mx:ControlBar horizontalAlign="right" width="100%"&gt;
                &lt;mx:Spacer width="100%" /&gt;
                &lt;mx:Button label="next" click="nextChild();" /&gt;
            &lt;/mx:ControlBar&gt;
        &lt;/mx:VBox&gt;
        &lt;mx:VBox id="v2" label="Two" width="100%" height="100%"&gt;
            &lt;mx:VBox width="100%" height="100%"&gt;
                &lt;mx:Label text="Two" /&gt;
            &lt;/mx:VBox&gt;
            &lt;mx:ControlBar width="100%"&gt;
                &lt;mx:Button label="prev" click="prevChild();" /&gt;
                &lt;mx:Spacer width="100%" /&gt;
                &lt;mx:Button label="next" click="nextChild();" /&gt;
            &lt;/mx:ControlBar&gt;
        &lt;/mx:VBox&gt;
        &lt;mx:VBox id="v3" label="Three" width="100%" height="100%"&gt;
            &lt;mx:VBox width="100%" height="100%"&gt;
                &lt;mx:Label text="Three" /&gt;
            &lt;/mx:VBox&gt;
            &lt;mx:ControlBar width="100%"&gt;
                &lt;mx:Button label="prev" click="prevChild();" /&gt;
                &lt;mx:Spacer width="100%" /&gt;
                &lt;mx:Button label="next" click="nextChild();" /&gt;
            &lt;/mx:ControlBar&gt;
        &lt;/mx:VBox&gt;
        &lt;mx:VBox id="v4" label="Four" width="100%" height="100%"&gt;
            &lt;mx:VBox width="100%" height="100%"&gt;
                &lt;mx:Label text="Four" /&gt;
            &lt;/mx:VBox&gt;
            &lt;mx:ControlBar width="100%"&gt;
                &lt;mx:Button label="prev" click="prevChild();" /&gt;
                &lt;mx:Spacer width="100%" /&gt;
                &lt;mx:Button label="next" click="nextChild();" /&gt;
            &lt;/mx:ControlBar&gt;
        &lt;/mx:VBox&gt;
        &lt;mx:VBox id="v5" label="Five" width="100%" height="100%"&gt;
            &lt;mx:VBox width="100%" height="100%"&gt;
                &lt;mx:Label text="Five" /&gt;
            &lt;/mx:VBox&gt;
            &lt;mx:ControlBar width="100%"&gt;
                &lt;mx:Button label="prev" click="prevChild();" /&gt;
                &lt;mx:Spacer width="100%" /&gt;
            &lt;/mx:ControlBar&gt;
        &lt;/mx:VBox&gt;
    &lt;/mx:Accordion&gt;

&lt;/mx:Application&gt;
</pre>
<p class="download"><a href="http://blog.flexexamples.com/wp-content/uploads/Accordion_headerRenderer_test_2/bin/srcview/source/comps/MyAccHeader.as.html">comps/MyAccHeader.as</a></p>
<pre class="code">
/**
 * http://blog.flexexamples.com/2008/05/30/preventing-users-from-clicking-on-an-accordion-containers-header-in-flex/
 */
package comps {
    import mx.containers.accordionClasses.AccordionHeader;

    public class MyAccHeader extends AccordionHeader {
        public function MyAccHeader() {
            super();
            mouseEnabled = false;
        }
    }
}
</pre>
<p class="information"><a href="http://blog.flexexamples.com/wp-content/uploads/Accordion_headerRenderer_test_2/bin/srcview/index.html">View source</a> is enabled in the following example.</p>
<p><iframe src="http://blog.flexexamples.com/wp-content/uploads/Accordion_headerRenderer_test_2/bin/main.html" width="100%" height="400"></iframe></p>
<p>The following example uses a custom header renderer (MyAccHeader) which sets the header&#8217;s <code>enabled</code> property to the value of the container&#8217;s <code>enabled</code> property, allowing you to selectively disable accordion headers.</p>
<p class="download"><a href="http://blog.flexexamples.com/wp-content/uploads/Accordion_headerRenderer_test_3/bin/srcview/source/main.mxml.html">View MXML</a></p>
<pre class="code">
&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;!-- http://blog.flexexamples.com/2008/05/30/preventing-users-from-clicking-on-an-accordion-containers-header-in-flex/ --&gt;
&lt;mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
        layout="vertical"
        verticalAlign="middle"
        backgroundColor="white"&gt;

    &lt;mx:Script&gt;
        &lt;![CDATA[
            private function prevChild():void {
                accordion.selectedIndex--;
            }

            private function nextChild():void {
                accordion.selectedIndex++;
            }
        ]]&gt;
    &lt;/mx:Script&gt;

    &lt;mx:Accordion id="accordion"
            headerRenderer="comps.MyAccHeader"
            width="100%"
            height="100%"&gt;
        &lt;mx:VBox id="v1"
                label="One"
                width="100%"
                height="100%"&gt;
            &lt;mx:Label text="One" /&gt;
        &lt;/mx:VBox&gt;
        &lt;mx:VBox id="v2"
                label="Two"
                width="100%"
                height="100%"&gt;
            &lt;mx:Label text="Two" /&gt;
        &lt;/mx:VBox&gt;
        &lt;mx:VBox id="v3"
                label="Three"
                enabled="false"
                width="100%"
                height="100%"&gt;
            &lt;mx:Label text="Three" /&gt;
        &lt;/mx:VBox&gt;
        &lt;mx:VBox id="v4"
                label="Four"
                enabled="false"
                width="100%"
                height="100%"&gt;
            &lt;mx:Label text="Four" /&gt;
        &lt;/mx:VBox&gt;
        &lt;mx:VBox id="v5"
                label="Five"
                width="100%"
                height="100%"&gt;
               &lt;mx:Label text="Five" /&gt;
        &lt;/mx:VBox&gt;
    &lt;/mx:Accordion&gt;

&lt;/mx:Application&gt;
</pre>
<p class="download"><a href="http://blog.flexexamples.com/wp-content/uploads/Accordion_headerRenderer_test_3/bin/srcview/source/comps/MyAccHeader.as.html">comps/MyAccHeader.as</a></p>
<pre class="code">
/**
 * http://blog.flexexamples.com/2008/05/30/preventing-users-from-clicking-on-an-accordion-containers-header-in-flex/
 */
package comps {
    import mx.containers.accordionClasses.AccordionHeader;
    import mx.events.FlexEvent;

    public class MyAccHeader extends AccordionHeader {
        public function MyAccHeader() {
            super();
            addEventListener(FlexEvent.INITIALIZE, accordionHeader_initialize);
        }

        private function accordionHeader_initialize(evt:FlexEvent):void {
            enabled = data.enabled;
        }
    }
}
</pre>
<p class="information"><a href="http://blog.flexexamples.com/wp-content/uploads/Accordion_headerRenderer_test_3/bin/srcview/index.html">View source</a> is enabled in the following example.</p>
<p><iframe src="http://blog.flexexamples.com/wp-content/uploads/Accordion_headerRenderer_test_3/bin/main.html" width="100%" height="400"></iframe></p>
<p class="new">You can also use ActionScript to toggle an accordion header&#8217;s <code>enabled</code> property using the following snippet:</p>
<pre class="code">
accordion.getHeaderAt(0).enabled = false;
</pre>
<div class="evernoteSiteMemory"><a href="javascript:" onclick="Evernote.doClip({title: 'Preventing users from clicking on an Accordion container\&#039;s header in Flex on FlexExamples.com',url: 'http://blog.flexexamples.com/2008/05/30/preventing-users-from-clicking-on-an-accordion-containers-header-in-flex/',contentID: 'post-651',code: 'Pete9667',suggestNotebook: 'FlexExamples',suggestTags: 'headerRenderer,mouseEnabled,selectedIndex',providerName: 'FlexExamples.com',styling: 'text' });return false" class="evernoteSiteMemoryLink"><img src="http://static.evernote.com/article-clipper-remember.png" class="evernoteSiteMemoryButton" />
				</a>				<div class="evernoteSiteMemoryClear">&nbsp;</div>
</div>]]></content:encoded>
			<wfw:commentRss>http://blog.flexexamples.com/2008/05/30/preventing-users-from-clicking-on-an-accordion-containers-header-in-flex/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Setting the selected index of a Flex LinkBar control</title>
		<link>http://blog.flexexamples.com/2008/01/20/setting-the-selected-index-of-a-flex-linkbar-control/</link>
		<comments>http://blog.flexexamples.com/2008/01/20/setting-the-selected-index-of-a-flex-linkbar-control/#comments</comments>
		<pubDate>Sun, 20 Jan 2008 18:43:23 +0000</pubDate>
		<dc:creator>Peter deHaan</dc:creator>
				<category><![CDATA[LinkBar]]></category>
		<category><![CDATA[selectedIndex]]></category>

		<guid isPermaLink="false">http://blog.flexexamples.com/2008/01/20/setting-the-selected-index-of-a-flex-linkbar-control/</guid>
		<description><![CDATA[<p>The following example shows you how you can set the selected index of a LinkBar control in Flex by setting the selectedIndex property using MXML or ActionScript.</p> <p>Full code after the jump.</p> <p></p> <p class="download"><a href="http://blog.flexexamples.com/wp-content/uploads/LinkBar_selectedIndex_test/main.mxml">View MXML</a></p> &#60;?xml version="1.0" encoding="utf-8"?&#62; &#60;!-- http://blog.flexexamples.com/2008/01/20/setting-the-selected-index-of-a-flex-linkbar-control/ --&#62; &#60;mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical" verticalAlign="middle" backgroundColor="white"&#62; &#60;mx:Array id="arr"&#62; &#60;mx:Object label="One" /&#62; &#60;mx:Object label="Two" [...]]]></description>
			<content:encoded><![CDATA[<p>The following example shows you how you can set the selected index of a LinkBar control in Flex by setting the <code>selectedIndex</code> property using MXML or ActionScript.</p>
<p>Full code after the jump.</p>
<p><span id="more-458"></span></p>
<p class="download"><a href="http://blog.flexexamples.com/wp-content/uploads/LinkBar_selectedIndex_test/main.mxml">View MXML</a></p>
<pre class="code">
&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;!-- http://blog.flexexamples.com/2008/01/20/setting-the-selected-index-of-a-flex-linkbar-control/ --&gt;
&lt;mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
        layout="vertical"
        verticalAlign="middle"
        backgroundColor="white"&gt;

    &lt;mx:Array id="arr"&gt;
        &lt;mx:Object label="One" /&gt;
        &lt;mx:Object label="Two" /&gt;
        &lt;mx:Object label="Three" /&gt;
        &lt;mx:Object label="Four" /&gt;
    &lt;/mx:Array&gt;

    &lt;mx:ApplicationControlBar dock="true"&gt;
        &lt;mx:Form styleName="plain"&gt;
            &lt;mx:FormItem label="selectedIndex:"&gt;
                &lt;mx:HSlider id="slider"
                        minimum="0"
                        maximum="{linkBar.dataProvider.length - 1}"
                        liveDragging="true"
                        snapInterval="1"
                        tickInterval="1"
                        dataTipPrecision="0" /&gt;
            &lt;/mx:FormItem&gt;
        &lt;/mx:Form&gt;
    &lt;/mx:ApplicationControlBar&gt;

    &lt;mx:LinkBar id="linkBar"
            dataProvider="{arr}"
            selectedIndex="{slider.value}" /&gt;

&lt;/mx:Application&gt;
</pre>
<p class="information"><a href="http://blog.flexexamples.com/wp-content/uploads/LinkBar_selectedIndex_test/bin/srcview/index.html">View source</a> is enabled in the following example.</p>
<p><iframe src="http://blog.flexexamples.com/wp-content/uploads/LinkBar_selectedIndex_test/bin/main.html" width="100%" height="150"></iframe></p>
<p>You can also set the <code>selectedIndex</code> property in ActionScript, as shown in the following snippet:</p>
<pre class="code">
&lt;mx:Script&gt;
    &lt;![CDATA[
        import mx.events.SliderEvent;

        private function slider_change(evt:SliderEvent):void {
            linkBar.selectedIndex = evt.value;
        }
    ]]&gt;
&lt;/mx:Script&gt;
</pre>
<div class="evernoteSiteMemory"><a href="javascript:" onclick="Evernote.doClip({title: 'Setting the selected index of a Flex LinkBar control on FlexExamples.com',url: 'http://blog.flexexamples.com/2008/01/20/setting-the-selected-index-of-a-flex-linkbar-control/',contentID: 'post-458',code: 'Pete9667',suggestNotebook: 'FlexExamples',suggestTags: 'selectedIndex',providerName: 'FlexExamples.com',styling: 'text' });return false" class="evernoteSiteMemoryLink"><img src="http://static.evernote.com/article-clipper-remember.png" class="evernoteSiteMemoryButton" />
				</a>				<div class="evernoteSiteMemoryClear">&nbsp;</div>
</div>]]></content:encoded>
			<wfw:commentRss>http://blog.flexexamples.com/2008/01/20/setting-the-selected-index-of-a-flex-linkbar-control/feed/</wfw:commentRss>
		<slash:comments>12</slash:comments>
		</item>
		<item>
		<title>Using a timer to change the selected index of a ViewStack container in Flex</title>
		<link>http://blog.flexexamples.com/2008/01/04/using-a-timer-to-change-the-selected-index-of-a-viewstack-container-in-flex/</link>
		<comments>http://blog.flexexamples.com/2008/01/04/using-a-timer-to-change-the-selected-index-of-a-viewstack-container-in-flex/#comments</comments>
		<pubDate>Fri, 04 Jan 2008 16:14:53 +0000</pubDate>
		<dc:creator>Peter deHaan</dc:creator>
				<category><![CDATA[Timer]]></category>
		<category><![CDATA[TimerEvent]]></category>
		<category><![CDATA[ViewStack]]></category>
		<category><![CDATA[selectedIndex]]></category>

		<guid isPermaLink="false">http://blog.flexexamples.com/2008/01/04/using-a-timer-to-change-the-selected-index-of-a-viewstack-container-in-flex/</guid>
		<description><![CDATA[<p>The following example shows how you can use a timer to change the selected index in a Flex ViewStack container.</p> <p>Full code after the jump.</p> <p></p> <p class="download"><a href="http://blog.flexexamples.com/wp-content/uploads/ViewStack_selectedIndex_test/main.mxml">View MXML</a></p> &#60;?xml version="1.0" encoding="utf-8"?&#62; &#60;!-- http://blog.flexexamples.com/2008/01/04/using-a-timer-to-change-the-selected-index-of-a-viewstack-container-in-flex/ --&#62; &#60;mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical" verticalAlign="middle" backgroundColor="white" creationComplete="init();"&#62; &#60;mx:Script&#62; &#60;![CDATA[ private var timer:Timer; private function init():void { timer = new Timer(1000); [...]]]></description>
			<content:encoded><![CDATA[<p>The following example shows how you can use a timer to change the selected index in a Flex ViewStack container.</p>
<p>Full code after the jump.</p>
<p><span id="more-418"></span></p>
<p class="download"><a href="http://blog.flexexamples.com/wp-content/uploads/ViewStack_selectedIndex_test/main.mxml">View MXML</a></p>
<pre class="code">
&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;!-- http://blog.flexexamples.com/2008/01/04/using-a-timer-to-change-the-selected-index-of-a-viewstack-container-in-flex/ --&gt;
&lt;mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
        layout="vertical"
        verticalAlign="middle"
        backgroundColor="white"
        creationComplete="init();"&gt;

    &lt;mx:Script&gt;
        &lt;![CDATA[
            private var timer:Timer;

            private function init():void {
                timer = new Timer(1000); /* 1000ms == 1second */
                timer.addEventListener(TimerEvent.TIMER, onTimer);
            }

            private function onTimer(evt:TimerEvent):void {
                var idx:uint = viewStack.selectedIndex;
                var max:uint = viewStack.numChildren;

                var newIdx:uint = ++idx % max;
                viewStack.selectedIndex = newIdx;
            }

            private function startTimer():void {
                if (!timer.running) {
                    timer.start();
                }
            }

            private function stopTimer():void {
                if (timer.running) {
                    timer.stop();
                }
            }
        ]]&gt;
    &lt;/mx:Script&gt;

    &lt;mx:ApplicationControlBar dock="true"&gt;
        &lt;mx:Button label="Start timer" click="startTimer();" /&gt;
        &lt;mx:Button label="Stop timer" click="stopTimer();" /&gt;

        &lt;mx:Spacer width="100%" /&gt;

        &lt;mx:Label text="selectedIndex:" /&gt;
        &lt;mx:HSlider id="slider"
                minimum="0"
                maximum="3"
                liveDragging="true"
                snapInterval="1"
                tickInterval="1"
                change="viewStack.selectedIndex = event.value;" /&gt;
    &lt;/mx:ApplicationControlBar&gt;

    &lt;mx:ViewStack id="viewStack" width="100%" height="100%"&gt;
        &lt;mx:VBox backgroundColor="haloBlue"
                width="100%"
                height="100%"&gt;
            &lt;mx:Label text="VBox 1" /&gt;
        &lt;/mx:VBox&gt;
        &lt;mx:VBox backgroundColor="haloGreen"
                width="100%"
                height="100%"&gt;
            &lt;mx:Label text="VBox 2" /&gt;
        &lt;/mx:VBox&gt;
        &lt;mx:VBox backgroundColor="haloOrange"
                width="100%"
                height="100%"&gt;
            &lt;mx:Label text="VBox 3" /&gt;
        &lt;/mx:VBox&gt;
        &lt;mx:VBox backgroundColor="haloSilver"
                width="100%"
                height="100%"&gt;
            &lt;mx:Label text="VBox 4" /&gt;
        &lt;/mx:VBox&gt;
    &lt;/mx:ViewStack&gt;

&lt;/mx:Application&gt;
</pre>
<p class="information"><a href="http://blog.flexexamples.com/wp-content/uploads/ViewStack_selectedIndex_test/bin/srcview/index.html">View source</a> is enabled in the following example.</p>
<p><iframe src="http://blog.flexexamples.com/wp-content/uploads/ViewStack_selectedIndex_test/bin/main.html" width="100%" height="250"></iframe></p>
<div class="evernoteSiteMemory"><a href="javascript:" onclick="Evernote.doClip({title: 'Using a timer to change the selected index of a ViewStack container in Flex on FlexExamples.com',url: 'http://blog.flexexamples.com/2008/01/04/using-a-timer-to-change-the-selected-index-of-a-viewstack-container-in-flex/',contentID: 'post-418',code: 'Pete9667',suggestNotebook: 'FlexExamples',suggestTags: 'selectedIndex',providerName: 'FlexExamples.com',styling: 'text' });return false" class="evernoteSiteMemoryLink"><img src="http://static.evernote.com/article-clipper-remember.png" class="evernoteSiteMemoryButton" />
				</a>				<div class="evernoteSiteMemoryClear">&nbsp;</div>
</div>]]></content:encoded>
			<wfw:commentRss>http://blog.flexexamples.com/2008/01/04/using-a-timer-to-change-the-selected-index-of-a-viewstack-container-in-flex/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Programmatically changing a Flex Accordion container&#8217;s selected index</title>
		<link>http://blog.flexexamples.com/2007/09/17/programmatically-changing-a-flex-accordion-containers-selected-index/</link>
		<comments>http://blog.flexexamples.com/2007/09/17/programmatically-changing-a-flex-accordion-containers-selected-index/#comments</comments>
		<pubDate>Tue, 18 Sep 2007 05:07:52 +0000</pubDate>
		<dc:creator>Peter deHaan</dc:creator>
				<category><![CDATA[Accordion]]></category>
		<category><![CDATA[selectedIndex]]></category>

		<guid isPermaLink="false">http://blog.flexexamples.com/2007/09/17/programmatically-changing-a-flex-accordion-containers-selected-index/</guid>
		<description><![CDATA[<p>The following example shows how you can change the currently selected child in an Accordion container using ActionScript by setting the accordion&#8217;s selectedIndex property.</p> <p>Full code after the jump.</p> <p></p> <p class="download"><a href="http://blog.flexexamples.com/wp-content/uploads/Accordion_selectedIndex_test/main.mxml">View MXML</a></p> &#60;?xml version="1.0" encoding="utf-8"?&#62; &#60;!-- http://blog.flexexamples.com/2007/09/17/programmatically-changing-a-flex-accordion-containers-selected-index/ --&#62; &#60;mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical" verticalAlign="middle" backgroundColor="white" creationComplete="init();"&#62; &#60;mx:Script&#62; &#60;![CDATA[ private function init():void { slider.maximum = accordion.numChildren [...]]]></description>
			<content:encoded><![CDATA[<p>The following example shows how you can change the currently selected child in an Accordion container using ActionScript by setting the accordion&#8217;s <code>selectedIndex</code> property.</p>
<p>Full code after the jump.</p>
<p><span id="more-182"></span></p>
<p class="download"><a href="http://blog.flexexamples.com/wp-content/uploads/Accordion_selectedIndex_test/main.mxml">View MXML</a></p>
<pre class="code">
&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;!-- http://blog.flexexamples.com/2007/09/17/programmatically-changing-a-flex-accordion-containers-selected-index/ --&gt;
&lt;mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
        layout="vertical"
        verticalAlign="middle"
        backgroundColor="white"
        creationComplete="init();"&gt;

    &lt;mx:Script&gt;
        &lt;![CDATA[
            private function init():void {
                slider.maximum = accordion.numChildren -1;
                slider.labels = [0, slider.maximum];
            }

            private function dataTipFunc(item:Object):String {
                return "selectedIndex = " + item.toString();
            }
        ]]&gt;
    &lt;/mx:Script&gt;

    &lt;mx:ApplicationControlBar dock="true"&gt;
        &lt;mx:Label text="selectedIndex:" /&gt;
        &lt;mx:HSlider id="slider"
                minimum="0"
                liveDragging="true"
                snapInterval="1"
                tickInterval="1"
                change="accordion.selectedIndex = event.value;"
                dataTipFormatFunction="dataTipFunc"
                dataTipPlacement="bottom" /&gt;
    &lt;/mx:ApplicationControlBar&gt;

    &lt;mx:Accordion id="accordion"
            historyManagementEnabled="false"
            width="100%"
            height="100%"
            change="slider.value = event.newIndex;"&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:VBox label="Five" /&gt;
    &lt;/mx:Accordion&gt;

&lt;/mx:Application&gt;
</pre>
<p class="information"><a href="http://blog.flexexamples.com/wp-content/uploads/Accordion_selectedIndex_test/bin/srcview/index.html">View source</a> is enabled in the following example.</p>
<p><iframe src="http://blog.flexexamples.com/wp-content/uploads/Accordion_selectedIndex_test/bin/main.html" width="100%" height="300"></iframe></p>
<div class="evernoteSiteMemory"><a href="javascript:" onclick="Evernote.doClip({title: 'Programmatically changing a Flex Accordion container\&#039;s selected index on FlexExamples.com',url: 'http://blog.flexexamples.com/2007/09/17/programmatically-changing-a-flex-accordion-containers-selected-index/',contentID: 'post-182',code: 'Pete9667',suggestNotebook: 'FlexExamples',suggestTags: 'selectedIndex',providerName: 'FlexExamples.com',styling: 'text' });return false" class="evernoteSiteMemoryLink"><img src="http://static.evernote.com/article-clipper-remember.png" class="evernoteSiteMemoryButton" />
				</a>				<div class="evernoteSiteMemoryClear">&nbsp;</div>
</div>]]></content:encoded>
			<wfw:commentRss>http://blog.flexexamples.com/2007/09/17/programmatically-changing-a-flex-accordion-containers-selected-index/feed/</wfw:commentRss>
		<slash:comments>15</slash:comments>
		</item>
		<item>
		<title>Adding icons to a Flex Accordion control</title>
		<link>http://blog.flexexamples.com/2007/08/27/adding-icons-to-a-flex-accordion-control/</link>
		<comments>http://blog.flexexamples.com/2007/08/27/adding-icons-to-a-flex-accordion-control/#comments</comments>
		<pubDate>Tue, 28 Aug 2007 03:19:19 +0000</pubDate>
		<dc:creator>Peter deHaan</dc:creator>
				<category><![CDATA[Accordion]]></category>
		<category><![CDATA[getHeaderAt()]]></category>
		<category><![CDATA[icon]]></category>
		<category><![CDATA[selectedIndex]]></category>

		<guid isPermaLink="false">http://blog.flexexamples.com/2007/08/27/adding-icons-to-a-flex-accordion-control/</guid>
		<description><![CDATA[<p>The following example demonstrates how you can add embedded icons to a Flex Accordion container.</p> <p>Full code after the jump.</p> <p></p> <p class="download"><a href="http://blog.flexexamples.com/wp-content/uploads/Accordion_icon_test/main.mxml">View MXML</a></p> &#60;?xml version="1.0" encoding="utf-8"?&#62; &#60;!-- http://blog.flexexamples.com/2007/08/27/adding-icons-to-a-flex-accordion-control/ --&#62; &#60;mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical" verticalAlign="middle" backgroundColor="white"&#62; &#60;mx:Script&#62; &#60;![CDATA[ [Bindable] [Embed(source="assets/bulletCheck.png")] private var BulletCheck:Class; [Bindable] [Embed(source="assets/bulletWarning.png")] private var BulletWarning:Class; [Bindable] [Embed(source="assets/bulletCritical.png")] private var BulletCritical:Class; ]]&#62; &#60;/mx:Script&#62; [...]]]></description>
			<content:encoded><![CDATA[<p>The following example demonstrates how you can add embedded icons to a Flex Accordion container.</p>
<p>Full code after the jump.</p>
<p><span id="more-121"></span></p>
<p class="download"><a href="http://blog.flexexamples.com/wp-content/uploads/Accordion_icon_test/main.mxml">View MXML</a></p>
<pre class="code">
&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;!-- http://blog.flexexamples.com/2007/08/27/adding-icons-to-a-flex-accordion-control/ --&gt;
&lt;mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
        layout="vertical"
        verticalAlign="middle"
        backgroundColor="white"&gt;

    &lt;mx:Script&gt;
        &lt;![CDATA[
            [Bindable]
            [Embed(source="assets/bulletCheck.png")]
            private var BulletCheck:Class;

            [Bindable]
            [Embed(source="assets/bulletWarning.png")]
            private var BulletWarning:Class;

            [Bindable]
            [Embed(source="assets/bulletCritical.png")]
            private var BulletCritical:Class;
        ]]&gt;
    &lt;/mx:Script&gt;

    &lt;mx:XML id="itemsXML"&gt;
        &lt;items&gt;
            &lt;item label="Item 1" status="warning" /&gt;
            &lt;item label="Item 2" status="critical" /&gt;
            &lt;item label="Item 3" status="critical" /&gt;
            &lt;item label="Item 4" status="check" /&gt;
            &lt;item label="Item 5" status="warning" /&gt;
            &lt;item label="Item 6" status="check" /&gt;
            &lt;item label="Item 7" status="check" /&gt;
            &lt;item label="Item 8" status="critical" /&gt;
        &lt;/items&gt;
    &lt;/mx:XML&gt;

    &lt;mx:ApplicationControlBar dock="true"&gt;
        &lt;mx:Label text="selectedIndex: {accordion.selectedIndex}" /&gt;
        &lt;mx:Spacer width="100" /&gt;
        &lt;mx:Label text="label: {accordion.getHeaderAt(accordion.selectedIndex).label}" /&gt;
    &lt;/mx:ApplicationControlBar&gt;

    &lt;mx:Accordion id="accordion"
            width="400"
            height="200"&gt;
        &lt;mx:VBox label="Success"
                icon="{BulletCheck}"
                width="100%"
                height="100%"&gt;
            &lt;mx:DataGrid id="successGrid"
                    dataProvider="{itemsXML.item.(@status == 'check')}"
                    width="100%"
                    height="100%"&gt;
            &lt;/mx:DataGrid&gt;
        &lt;/mx:VBox&gt;

        &lt;mx:VBox label="Warning"
                icon="{BulletWarning}"
                width="100%"
                height="100%"&gt;
            &lt;mx:DataGrid id="warningGrid"
                    dataProvider="{itemsXML.item.(@status == 'warning')}"
                    width="100%"
                    height="100%"&gt;
            &lt;/mx:DataGrid&gt;
        &lt;/mx:VBox&gt;

        &lt;mx:VBox label="Critical"
                icon="{BulletCritical}"
                width="100%"
                height="100%"&gt;
            &lt;mx:DataGrid id="criticalGrid"
                    dataProvider="{itemsXML.item.(@status == 'critical')}"
                    width="100%"
                    height="100%"&gt;
            &lt;/mx:DataGrid&gt;
        &lt;/mx:VBox&gt;
    &lt;/mx:Accordion&gt;

&lt;/mx:Application&gt;
</pre>
<p class="information"><a href="http://blog.flexexamples.com/wp-content/uploads/Accordion_icon_test/bin/srcview/index.html">View source</a> is enabled in the following example.</p>
<p><iframe src="http://blog.flexexamples.com/wp-content/uploads/Accordion_icon_test/bin/main.html" width="100%" height="300"></iframe></p>
<div class="evernoteSiteMemory"><a href="javascript:" onclick="Evernote.doClip({title: 'Adding icons to a Flex Accordion control on FlexExamples.com',url: 'http://blog.flexexamples.com/2007/08/27/adding-icons-to-a-flex-accordion-control/',contentID: 'post-121',code: 'Pete9667',suggestNotebook: 'FlexExamples',suggestTags: 'getHeaderAt(),icon,selectedIndex',providerName: 'FlexExamples.com',styling: 'text' });return false" class="evernoteSiteMemoryLink"><img src="http://static.evernote.com/article-clipper-remember.png" class="evernoteSiteMemoryButton" />
				</a>				<div class="evernoteSiteMemoryClear">&nbsp;</div>
</div>]]></content:encoded>
			<wfw:commentRss>http://blog.flexexamples.com/2007/08/27/adding-icons-to-a-flex-accordion-control/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>

