lundi 6 février 2017

Flash and JAWS Accessibility

Currently I am trying to use JAWS screen reader to make a .fla I have created easier to those who need this sort of software.

I so far have been able to set the name and tab-indexes for two movie-clips. I was wondering if anyone knew how to get the screen reader to read the names or descriptions of these movie-clips?

import flash.accessibility.AccessibilityProperties;

stop();

setupJAWS();

/////////////////////---JAWS---//////////////////////////////////////
function enable( mc:* ) {
    trace("Enabled");
    var _accessClip = mc;
    _accessClip.accessibilityProperties.silent = false;
    _accessClip.tabEnabled = true;
}

function disable( mc:* ) {
    var _accessClip = mc;
    _accessClip.accessibilityProperties.silent = true;
    _accessClip.tabEnabled = false;
}

function setupJAWS(){

trace("SETTING UP");

this.Text58.accessibilityProperties = new AccessibilityProperties();
this.Text58.accessibilityProperties.name = "TEXT1";
this.Text58.tabIndex = 2;
enable(this.Text58);

this.Text59.accessibilityProperties = new AccessibilityProperties(); 
this.Text59.accessibilityProperties.name = "TEXT2";
this.Text59.tabIndex = 3;
enable(this.Text59);

Accessibility.updateProperties();
stage.focus=Text58;

}

Thanks in advance :)

Aucun commentaire:

Enregistrer un commentaire