Get Adobe Flash player

I recently posted a TextToSpeech as3 interface class which you can view here. Basically you pass it a string and it will read it out loud.

Today I’ve added an easy way to increase the accessibility of your flash microsite without having to go through the whole project adding code to every button. Simply add the two lines below to your root document and this class will search through every display object and add rollover text to speech.

import ps.GText2Speech.Accessibility;

var accessibility:Accessibility = new Accessibility(this);

You can also specify to read the text on a click or rollout instead of the default rollover.

import ps.GText2Speech.Accessibility;

var accessibility:Accessibility = new Accessibility(this);
accessibility.Rollover = false;
accessibility.Click = true;
accessibility.Rollout = true;

In most cases there will probably be some textfields you want to ignore, so if you need to do this simply add the display object to the exclude list.

accessibility.exclude(mc_skip);

You can download the source and example files here.

If you fine any bugs or have any additional feature requests please post them below.
Enjoy!