Container Flex



    
        
        import mx.events.ItemClickEvent;
        import mx.controls.TabBar;
        import mx.collections.ArrayCollection;
        [Bindable]
        private var STATE_ARRAY:ArrayCollection = new ArrayCollection([
                                                    {label:"A", data:"AA"},
                                                    {label:"B", data:"BB"},
                                                    {label:"C", data:"CC"}
                                                  ]);
        private function clickEvt(event:ItemClickEvent):void {
            var targetComp:TabBar = TabBar(event.currentTarget);
            forClick.text="label is: " + event.label + " index is: " + event.index + " capital is: " +
            targetComp.dataProvider[event.index].data;
        }
      
    

    
        {STATE_ARRAY}