Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Later
-
Adobe Flex SDK 4.1 (Release)
-
None
-
None
-
Affected OS(s): Windows
Affected OS(s): Windows
Language Found: English
Description
Steps to reproduce:
1. Create an AIR app with Flex 4.1 or Flex 4
2. Make sure "generate accessible SWF" is checked in the Flex Project properties (or pass in the accessibility flag to the compiler)
3. Create an application that displays an additional s:Window, in which you can click a button to show an Alert.
Actual Results:
The following error is produced:
TypeError: Error #1034: Type Coercion failed: cannot convert mx.managers::WindowedSystemManager@42f4a89 to mx.managers.SystemManager.
at mx.accessibility::AlertAccImpl/eventHandler()[E:\dev\4.x\frameworks\projects\framework\src\mx\accessibility\AlertAccImpl.as:187]
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at mx.core::UIComponent/dispatchEvent()[E:\dev\4.x\frameworks\projects\framework\src\mx\core\UIComponent.as:12528]
at mx.core::UIComponent/set initialized()[E:\dev\4.x\frameworks\projects\framework\src\mx\core\UIComponent.as:1627]
at mx.managers::LayoutManager/doPhasedInstantiation()[E:\dev\4.x\frameworks\projects\framework\src\mx\managers\LayoutManager.as:759]
at mx.managers::LayoutManager/doPhasedInstantiationCallback()[E:\dev\4.x\frameworks\projects\framework\src\mx\managers\LayoutManager.as:1072]
Expected Results:
No TypeError is thrown.
Workaround:
Don't generate an accessible SWF (which is checked by default).
(See attached FB project.)