Note that there are some explanatory texts on larger screens.

plurals
  1. POFlex 3 PopUpManager does not correctly enable Accessibility features
    text
    copied!<p>I have an application written with Flex 3.6 and when I create a modal popup dialog, the buttons and text on that popup do not work correctly with the Accessibility properties that I have defined. The app is compiled with the accessibility flag.</p> <p>I build a simple app to test demonstrate the problem. </p> <pre class="lang-js prettyprint-override"><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical"&gt; &lt;mx:Script&gt; &lt;![CDATA[ import mx.containers.TitleWindow; import mx.managers.PopUpManager; private var titleWindow:TitleWindow; private function popUp():void { titleWindow = PopUpManager.createPopUp(this, CustomTitleWindow, true) as TitleWindow; PopUpManager.centerPopUp(titleWindow); } ]]&gt; &lt;/mx:Script&gt; &lt;mx:Button label="Launch TitleWindow" click="popUp()" /&gt; &lt;/mx:Application&gt; </code></pre> <p>and the CustomTitleWindow.mxml</p> <pre class="lang-js prettyprint-override"><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;mx:TitleWindow xmlns:mx="http://www.adobe.com/2006/mxml" title="popup titlewindow" layout="vertical" width="200" height="200" showCloseButton="true" close="titleWindow_close(event)"&gt; &lt;mx:Script&gt; &lt;![CDATA[ import mx.events.CloseEvent; import mx.managers.PopUpManager; private function titleWindow_close(evt:CloseEvent):void { PopUpManager.removePopUp(this) } private function titleWindow_continue():void { PopUpManager.removePopUp(this); } ]]&gt; &lt;/mx:Script&gt; &lt;mx:Text text="How now brown cow." width="100%" /&gt; &lt;mx:Button label="Continue" click="titleWindow_continue()" /&gt; &lt;/mx:TitleWindow&gt; </code></pre> <p>Now when I build the application, and run the Inspect tool to view the MSAA accessibility info, the "Continue" button on the titlewindow does not get highlighted. This means that a screen reader or tool like Dragon NaturallySpeaking will not work when you say "Click Continue" to it.</p> <p>I built the swf as an executable swf with the Flash 9.0r124 runtime (not debug) with Northcode's SWF studio, but the same thing is seen with later flash runtimes (10 and 11)</p> <p>Below is a view of the inspect tool looking at my app with the titlewindow open, and the mouse cursor over the Continue button</p> <p><img src="https://i.stack.imgur.com/odYHj.png" alt="screenshot of test flex app and inspect tool"></p> <p>what I should be seeing is the Continue button highlighted in yellow</p> <p>Any idea how to get the accessibility features to work correctly with modal popup windows created using Flex's PopupManager?</p> <p>It will not help me by going to Flex 4.x, but I wrote a quick test application and it appears that in Flex 4.5.1 at least the problem is fixed, see screenshot below. We are currently stuck with an application using the Flex 3.6 runtime, and cant make the upgrade to Flex 4.x yet</p> <p><img src="https://i.stack.imgur.com/ZInJn.png" alt="screenshot of flex 4.5.1"></p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload