Components Flex



    xmlns:s="library://ns.adobe.com/flex/spark"
    xmlns:mx="library://ns.adobe.com/flex/mx" creationComplete="init()">
    
         
        private function init():void { 
            dc1.displayedMonth = 1; 
            dc1.displayedYear = 2008; 
        } 
        public function displayDates():void { 
            var dateRanges:Array = []; 
            for (var i:int=0; i                 var cDate:Date = new Date(shows.show[i].showDate.toString()); 
                 var cDateObject:Object = {rangeStart:cDate, rangeEnd:cDate}; 
                 dateRanges.push(cDateObject); 
            } 
            dc1.selectedRanges = dateRanges; 
        } 
      
    

    
    
        
            
                
                    1
                    02/28/2008
                    10:45am/11:15am
                

                
                    2
                    02/23/2008
                    7:00pm
                

            

        
    

            creationComplete="displayDates();" />