<?xml version="1.0" encoding="utf-8"?>
<!-- http://blog.flexexamples.com/2007/09/17/programmatically-changing-a-flex-accordion-containers-selected-child/ -->
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
        layout="vertical"
        verticalAlign="middle"
        backgroundColor="white" viewSourceURL="srcview/index.html">

    <mx:Script>
        <![CDATA[
            import mx.events.ItemClickEvent;
            import mx.events.ListEvent;

            private function comboBox_change(evt:ListEvent):void {
                accordion.selectedChild = evt.currentTarget.selectedItem.data;
            }

            private function linkBar_itemClick(evt:ItemClickEvent):void {
                accordion.selectedChild = evt.item.data;
            }
        ]]>
    </mx:Script>

    <mx:Array id="arr">
        <mx:Object label="One" data="{vOne}" />
        <mx:Object label="Two" data="{vTwo}" />
        <mx:Object label="Three" data="{vThree}" />
        <mx:Object label="Four" data="{vFour}" />
        <mx:Object label="Five" data="{vFive}" />
    </mx:Array>

    <mx:ApplicationControlBar dock="true">
        <mx:Label text="selectedChild:" />
        <mx:ComboBox id="comboBox"
                dataProvider="{arr}"
                selectedIndex="{accordion.selectedIndex}"
                change="comboBox_change(event);" />

        <mx:Spacer width="100%" />

        <mx:Label text="selectedChild:" />    
        <mx:LinkBar id="linkBar" dataProvider="{arr}"
                itemClick="linkBar_itemClick(event);" />
    </mx:ApplicationControlBar>

    <mx:Accordion id="accordion"
            historyManagementEnabled="false"
            width="100%"
            height="100%">
        <mx:VBox id="vOne" label="One" />
        <mx:VBox id="vTwo" label="Two" />
        <mx:VBox id="vThree" label="Three" />
        <mx:VBox id="vFour" label="Four" />
        <mx:VBox id="vFive" label="Five" />
    </mx:Accordion>

</mx:Application>