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


-----Original Message-----
From: <EMAIL REMOVED>
[mailto: <EMAIL REMOVED> ] On Behalf Of adam solomon
Sent: Wednesday, November 03, 2010 10:02 AM
To: WebAIM Discussion List
Subject: [WebAIM] accessible drag drop for flash

Does anyone know of a good development pattern for drag and drop in flash?
(Or, for that matter, html, while we are on the subject). An example we
have
to implement in flash is a math question on a test where the student is
asked how much gas one could fill up the tank with given a price and
amount.
There would be a flash showing the gas gauge - and the student would be
required to drag the arrow on the gas gauge to the point that it would be
filled (1/4, 1/2, 3/4, full). Any ideas?

--
adam solomon
linkedin <http://il.linkedin.com/pub/adam-solomon/24/449/a4>;
blogix <http://adam.blogix.co.il/>;