2 Replies Latest reply on Mar 4, 2008 12:26 PM by GeorgeWS

    Issue with Alert when Accessibility is turned on?

    BerubeS Level 1
      Perhaps someone can help with this.

      We have a very simple alert window that is accessed when a button click event occurs

      ie.
      click="doCancel(event)"

      Here is doCancel

      private function doCancel(event:Event):void
      {
      Alert.show("Are you sure you want to Cancel?", "Cancel Wizard", Alert.YES|Alert.NO, this);
      }

      I removed the alertHandler just as a test, since with or without it the error occured.

      When Accessibility is on and you run this alert.show you get this stack trace:


      TypeError: Error #2007: Parameter source must be non-null.
      at flash.accessibility::Accessibility$/sendEvent()
      at mx.accessibility::AlertAccImpl/mx.accessibility:AlertAccImpl::eventHandler()[C:\dev\flex_ 201_gmc\sdk\frameworks\mx\accessibility\AlertAccImpl.as:243]
      at flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction()
      at flash.events::EventDispatcher/dispatchEvent()
      at mx.core::UIComponent/dispatchEvent()[C:\dev\flex_201_gmc\sdk\frameworks\mx\core\UICompone nt.as:8323]
      at mx.core::UIComponent/set initialized()[C:\dev\flex_201_gmc\sdk\frameworks\mx\core\UIComponent.as:1095]
      at mx.managers::LayoutManager/mx.managers:LayoutManager::doPhasedInstantiation()[C:\dev\flex _201_gmc\sdk\frameworks\mx\managers\LayoutManager.as:696]
      at Function/ http://adobe.com/AS3/2006/builtin::apply()
      at mx.core::UIComponent/mx.core:UIComponent::callLaterDispatcher2()[C:\dev\flex_201_gmc\sdk\ frameworks\mx\core\UIComponent.as:7909]
      at mx.core::UIComponent/mx.core:UIComponent::callLaterDispatcher()[C:\dev\flex_201_gmc\sdk\f rameworks\mx\core\UIComponent.as:7852]


      Any ideas?