0 Replies Latest reply on Sep 13, 2007 7:19 AM by Tibetoine

    selectedRanges bug on DateChooser

    Tibetoine
      Hi,

      I'have a problem, i'm trying to initialize a DateChooser using the selectedRanges setter, but that doesn't seem to work! Could you help me ?

      Code :
      package componant
      {
      import mx.controls.DateChooser;

      public class MyDateChooser extends DateChooser
      {
      public function MyDateChooser():void{
      selectedRanges = new Array([ {rangeStart: new Date(2007,8,4), rangeEnd: new Date(2006,8,4)}, {rangeStart:new Date(2007,9,4), rangeEnd: new Date(2007,9,4)} ]);
      }


      override public function set selectedRanges(value:Array):void{
      super.selectedRanges = value;
      }
      }
      }