0 Replies Latest reply on Feb 26, 2007 6:49 PM by newhander

    question about DateChooser

    newhander
      <mx:DateChooser id="dtReport" showToday="true"
      yearNavigationEnabled="true" initialize="initDC()"
      change="gochage(event)" />

      <mx:Script>
      <![CDATA[
      private function viewDayReport(eventObj:CalendarLayoutChangeEvent):void{
      Alert.show(eventObj.newDate.toString());
      Alert.show(eventObj.currentTarget.selectedDate.toString());
      }
      ]]>
      </mx:Script>

      ===========
      when i click the same date in DateChooser , an error throwed :
      "#1009:cannot access a property or method of a null object reference..."

      seems eventObj.newDate. is right , eventObj.currentTarget.selectedDate is wrong?


      Thx a lot!