WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: accessible drag drop for flash

for

From: Jason Megginson
Date: Nov 3, 2010 9:09AM


Hi Adam,

There are a number of ways that one can provide an alternative to drag and
drop functions in Flash.

One Scenario (ActionScript 3 Example):

On the Flash stage, you can provide 4 Flash buttons/movie clips that
accept keyboard focus. These movie clips may be the 1/4, 1/2, 3/4, and
full movie clips. Ensure a proper event is present so the gauge moves to
the corresponding movie clip image when dragged or activated with the
Enter key.

If it is a movie clip the MSAA role of "button" can be set:

Quarter_full.buttonMode="true";
Quarter_full.tabEnabled="true";

The four buttons must have accessible name's ("quarter full", "half full",
"three-quarters full", "Full" for example).

Quarter_full.accessibilityProperties.name="quarter full";

You may consider placing an accessible description on the object(s):

Quarter_full.accessibilityProperties.description="select this
answer with the Enter key";

Once the user tabs to the object and activates the enter key, the
accessible name should update to include the state of the answer.

Quarter_full.accessibilityProperties.name="quarter full - current
selection";

Ensure that when the accessibility properties change, you set the
updateProperties method:

Accessibility.updateProperties();


Jason Megginson
SSB BART Group
(O):703-637-8964
(C):703-244-7755