Adobe Flash and Flex Accessibility with Screen Readers

If you are dealing with 508 compliance and wondering if a Flex application is accessible, this is your post.

First, yes, screen readers can read Flex applications. And yes, its fairly easy. But, I’ll discuss how in a future post.

But, if you’d rather send people to your old HTML version of your site when using a read, there is good news. Flash Player has the ability to detect if a screen reader is running on the client machine, even if JavaScript is disabled and/or the Flex application is not compiled as an “accessible swf”. This is possible with the Accessibility class.

It is important to note that if the Flex application is compiled as an “accessible swf”, the screen reader will also be able to read content in the swf. If not, the screen reader only reads the words “flash movie start” whenever you interact with it. Talk about a usability buzz kill.

So, here is the code to see if a screen reader is currently running (not just installed) and then adds a LinkButton that calls a navigateToURL on click.

private function init():void
{
  // this is the only thing you need to do
  if( Accessibility.active )
  {
    var linkButton:LinkButton = new LinkButton();
    linkButton.label = "Click here to go to HTML site";
    linkButton.addEventListener( MouseEvent.CLICK, goToSite );
    this.addChildAt( linkButton, 0 );
  }
}

private function goToSite( eventObj:MouseEvent ):void
{
  navigateToURL( new URLRequest("<screen reader friendly site>") );
}

There are more properties available on the Accessibility class, but this is all you need to give accessibility an option.

Pass it on:
  • Digg
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • StumbleUpon
  • Technorati
  • LinkedIn
  • MySpace
  • TwitThis
  • Google Bookmarks
  • Live-MSN
  • Pownce
This entry was posted in Flash, Flash Platform, Flex, RIA and tagged , , , , , , , . Bookmark the permalink.

One Response to Adobe Flash and Flex Accessibility with Screen Readers

  1. Wendy Gross says:

    You wrote:
    >First, yes, screen readers can read Flex >applications. And yes, its fairly easy. But, I’ll >discuss how in a future post.

    I look forward to your future post and request that you make this a topic for your On3 Flex 3 course that I will be taking Nov 30 – Dec 4 2009 in Denver.

    Thanks!
    – Wendy

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>