Event Flex



    width="100%" creationComplete="initApp()">
    
        import mx.collections.ArrayCollection;
        [Bindable]
        public var dpac:ArrayCollection = new ArrayCollection ([
            { date:"01/01/2006", cash:50000,stocks:198192, retirement:130101,home:750000, other:19148 },
            { date:"02/01/2006", cash:50000,stocks:210309, retirement:143707,home:760000, other:19493 },
            { date:"03/01/2006", cash:50000,stocks:238992, retirement:169529,home:770000, other:19933 },
            { date:"04/01/2006", cash:50000,stocks:292269, retirement:242596,home:770000, other:21445 }]);
        public var initSeriesArray:Array = new Array();
        public var level:Number = 1;
        public var newSeries:Array;
        private function initApp():void {
            // Get initial series Array -- to be reloaded when it returns
            // from a drill down.
            initSeriesArray = chart.series;
        }
        private function zoomIntoSeries(e:Event):void {
            newSeries = new Array();
            if (level == 1) {
                newSeries.push(e.currentTarget);
                level = 2;
            } else {
                newSeries = initSeriesArray;
                p1.title = "Net Worth";
                level = 1;
            }
            chart.series = newSeries;
        }
      

    
                    showDataTips="true">
            
                                    xField="date" click="zoomIntoSeries(event)" />
                                    xField="date" click="zoomIntoSeries(event)" />
                                    yField="retirement" xField="date"
                    click="zoomIntoSeries(event)" />
                                    xField="date" click="zoomIntoSeries(event)" />
                                    xField="date" click="zoomIntoSeries(event)" />