8 Replies Latest reply on Jun 16, 2009 4:24 AM by *Prashant Shelke*

    Error 2007 when dismissing alert with Yes No buttons




      I have some Alert boxes that display the Yes / No buttons - I originally had this problem when dismissing the Alert - it would throw a 2007 error - "Parameter source must be non-null".


      Googling around revealed that this was a bug that could be overcome by explicitly specifying the default button in teh Alert.show call - I amended my code and all was well - for a week. Now the error is back again, even though the code still has the workaround.


      Typical call:


      Alert.show(msg, "Remove Contacts", Alert.YES | Alert.NO,
                  this, deleteContactConfirmationHandler, null, Alert.NO);

      Throws the error:


      TypeError: Error #2007: Parameter source must be non-null.
      at flash.accessibility::Accessibility$/sendEvent()
      at mx.accessibility::AlertAccImpl/eventHandler()[E:\dev\flex_201_borneo\sdk\frameworks\mx\ac cessibility\AlertAccImpl.as:208]
      at flash.events::EventDispatcher/dispatchEventFunction()
      at flash.events::EventDispatcher/dispatchEvent()
      at mx.core::UIComponent/dispatchEvent()[E:\dev\flex_201_borneo\sdk\frameworks\mx\core\UIComp onent.as:8389]
      at mx.controls.alertClasses::AlertForm/removeAlert()[E:\dev\flex_201_borneo\sdk\frameworks\m x\controls\alertClasses\AlertForm.as:394]
      at mx.controls.alertClasses::AlertForm/clickHandler()[E:\dev\flex_201_borneo\sdk\frameworks\ mx\controls\alertClasses\AlertForm.as:435]

      I'm using Flex builder 3.0 (build 3.0. 2.214193)


      Does anyone know why this is still happening?