The objective of this technique is to provide a long text alternative that serves the same purpose and presents the same information as the original non-text content when a short text alternative is not sufficient.
The Flash Player supports long text alternatives to non-text objects, which can be defined in ActionScript or within Flash authoring tools using the description property, as indicated in the examples below.
The Flash Professional authoring tool's Accessibility panel lets authors provide accessibility information to assistive technology and set accessibility options for individual Flash objects or entire Flash applications.
Important: Only use the 'Description' field if a short text alternative is not sufficient to describe the objects purpose. Otherwise, leave the 'Description' field empty.
To manage an object's text equivalents programmatically using ActionScript, the _accProps object must be used. This references an object containing accessibility related properties set for the object. The code example below shows a simple example of how the _accProps object is used to set an objects name and description in ActionScript.
A chart showing sales for October has a short text alternative of "October sales chart". The long description would provide more information, as shown in the code below.
// 'chart_mc' is an instance placed on the movie's main timeline _root.chart_mc._accProps = new Object(); _root.chart_mc._accProps.name = "October Sales Chart"; _root.chart_mc._accProps.description = "Bar Chart showing sales for October.\ There are 6 salespersons.Maria is highest with 349 units.Frances is next\ with 301.Then comes Juan with 256, Sue with 250, Li with 200 and Max\ with 195.The primary use of the chart is to show leaders, so the description\ is in sales order.";
To manage an object's text equivalents programmatically using ActionScript, the AccessibilityProperties object must be used. The code example below shows a simple example of how the AccessibilityProperties object used to set an objects name and description in ActionScript.
A chart showing sales for October has a short text alternative of "October sales chart". The long description would provide more information, as shown in the code below.
// 'chart_mc' is an instance placed on the movie's main timeline chart_mc.accessibilityProperties = new AccessibilityProperties(); chart_mc.accessibilityProperties.name = "October Sales Chart"; chart_mc.accessibilityProperties.description = "Bar Chart showing sales for October.\ There are 6 salespersons.Maria is highest with 349 units.Frances is next\ with 301.Then comes Juan with 256, Sue with 250, Li with 200 and Max\ with 195.The primary use of the chart is to show leaders, so the description\ is in sales order.";
#6 is true.