Data Model Flex



    height="600">
    
        import mx.collections.ArrayCollection
        [Bindable]
        public var aapl:ArrayCollection = new ArrayCollection([
            {date:"08/01/2007", close:42},
            {date:"08/02/2007", close:43},
            {date:"08/03/2007", close:43},
            {date:"08/06/2007", close:42},
            {date:"08/07/2007", close:38},
            {date:"08/08/2007", close:37},
            {date:"08/09/2007", close:39},
            {date:"08/10/2007", close:41},
            {date:"08/13/2007", close:45},
            {date:"08/14/2007", close:47},
            {date:"08/15/2007", close:48},
            {date:"08/16/2007", close:42},
            {date:"08/17/2007", close:43},
            {date:"08/20/2007", close:45},
            {date:"08/21/2007", close:50},
            {date:"08/22/2007", close:51},
            {date:"08/23/2007", close:55},
            {date:"08/24/2007", close:51},
            {date:"08/27/2007", close:49},
            {date:"08/28/2007", close:51},
            {date:"08/29/2007", close:50},
            {date:"08/30/2007", close:49},
            {date:"08/31/2007", close:54}
            ]);
        private function myParseFunction(s:String):Date {
            var a:Array = s.split("/");
            var newDate:Date = new Date(a[2],a[0]-1,a[1]);
            return newDate;
        }
        // Create an Array that specifies which days to exclude.
        // 0 is Sunday and 6 is Saturday.
        [Bindable]
        private var offDays:Array = [0,6];
      

    
        
            
                                    parseFunction="myParseFunction" disabledDays="{offDays}" />