Flash辅助功能,检测到屏幕读取器检测到、辅助功能、屏幕、读取器

2023-09-08 15:35:40 作者:ε缺氧的鱼

我正在做一个SWF应用程序访问谁使用JAWS或Windows眼睛视力受损者。我安装了JAWS和Windows眼睛的演示版本。

I'm working on making a SWF application accessible for visually impaired people who use JAWS or Windows Eyes. I installed both JAWS and Windows Eyes demo versions.

当在HTML页面在浏览器上运行我的SWF(本地),Capabilities.hasAccessibility原来如此,但Accessibility.active原来假的,每一次 - 即使过了几秒钟检查它

When running my swf (locally) in a browser on a html page, Capabilities.hasAccessibility turns out true, but Accessibility.active turns out false, every time - even when checking it after a couple of seconds.

难道是因为我使用的演示版本,或者我只是错过了一些东西,如设置一个参数SWFObject的吧?

Is it because I am using demo versions or am I just missing out on something like setting a parameter for SWFObject perhaps?

推荐答案

好吧,我想通了

的wmode可能无法设置为透明的,它会隐藏SWFObject的对屏幕阅读器。

SWFObject的需要集中,像这样: wmode may not be set to transparent, it will hide the swfobject for screenreaders.

swfobject needs to be focused like so:

swfobject.addLoadEvent(setFocusOnFlash);

swfobject.addLoadEvent(setFocusOnFlash);

功能setFocusOnFlash(){ 变种FL =的document.getElementById(装载机); 如果(佛罗里达州){fl.focus(); }

function setFocusOnFlash() { var fl = document.getElementById("loader"); if (fl) { fl.focus(); }

}