You have to set the canvas accessible attribute to true for global accessibility to work in Flash. It changes the way some things are compiled, so it can't currently be set/unset at runtime.

View.aasilent is the way to silence specific views and their children from being read by the screen reader...

Henry Minsky wrote:
I'm trying to implement some of the accessibility API (just setAADescription) for DHTML, and am wondering what is the API is for enabling and disabling accessibility, either globally or on individual views/sprites.

Views have a setAccessible method that calls sprite.setAccessible, and in swf that is implemented as


/** Turns accessibility on/off if accessible == true and a screen reader is active
  * @param Boolean accessible
  */
LzSprite.prototype.setAccessible = function(accessible) {
    var a = LzBrowserKernel.isAAActive() && accessible;
    //Debug.write('setAccessible', LzBrowserKernel.isAAActive(), a, this);
    // turn off ugly _focusrect
    _root._focusrect = 0;
    _root.spriteroot.accessible = a;
}

What does this do? It seems like there's a global flag from LzBrowserKernel, plus there's a canvas 'accessible' flag, right? Is this method only supposed to be called on the canvas(sprite)? Or is there supposed to be enable and disable for each view's 'accessible' behavior?


--
Henry Minsky
Software Architect
[email protected] <mailto:[email protected]>



--
Regards,
Max Carlson
OpenLaszlo.org

Reply via email to