<?xml version="1.0" encoding="utf-8"?>
<!-- http://blog.flexexamples.com/2008/06/10/disabling-keyboard-navigation-on-the-accordion-container-in-flex/ -->
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
        layout="vertical"
        verticalAlign="middle"
        backgroundColor="white"
        initialize="init();">

    <mx:Script>
        <![CDATA[
            import mx.containers.VBox;
            import mx.controls.Label;
            import comps.*;
        
            private var accordion:MyAccordion;
            private var v1:VBox;
            private var v2:VBox;
            private var v3:VBox;
            private var v4:VBox;
            private var v5:VBox;
            private var l1:Label;
            private var l2:Label;
            private var l3:Label;
            private var l4:Label;
            private var l5:Label;
        
            private function init():void {
                l1 = new Label();
                l1.text = "One";

                l2 = new Label();
                l2.text = "Two";

                l3 = new Label();
                l3.text = "Three";

                l4 = new Label();
                l4.text = "Four";

                l5 = new Label();
                l5.text = "Five";
                
                v1 = new VBox();
                v1.label = "One";
                v1.percentWidth = 100;
                v1.percentHeight = 100;
                v1.addChild(l1);

                v2 = new VBox();
                v2.label = "Two";
                v2.percentWidth = 100;
                v2.percentHeight = 100;
                v2.addChild(l2);
                
                v3 = new VBox();
                v3.label = "Three";
                v3.percentWidth = 100;
                v3.percentHeight = 100;
                v3.addChild(l3);
                
                v4 = new VBox();
                v4.label = "Four";
                v4.percentWidth = 100;
                v4.percentHeight = 100;
                v4.addChild(l4);
                
                v5 = new VBox();
                v5.label = "Five";
                v5.percentWidth = 100;
                v5.percentHeight = 100;
                v5.addChild(l5);

                accordion = new MyAccordion();
                accordion.percentWidth = 100;
                accordion.percentHeight = 100;
                accordion.addChild(v1);
                accordion.addChild(v2);
                accordion.addChild(v3);
                accordion.addChild(v4);
                accordion.addChild(v5);
                addChild(accordion);
            }
        ]]>
    </mx:Script>

</mx:Application>