03.05.2013 Views

ActionScript 2.0 Language Reference - Adobe Help and Support

ActionScript 2.0 Language Reference - Adobe Help and Support

ActionScript 2.0 Language Reference - Adobe Help and Support

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

delete my_mc._accProps.silent; // revert to default value<br />

Availability: <strong>ActionScript</strong> 1.0; Flash Player 6,0,65,0<br />

Parameters<br />

propertyName:Boolean or String - An accessibility property name (see the following<br />

description for valid names). instanceName<br />

instanceName:String - The instance name assigned to an instance of a movie clip, button,<br />

dynamic text field, or input text field. To refer to the _accProps object that represents the<br />

entire Flash document, omit instanceName.<br />

Example<br />

If you change an image <strong>and</strong> want to update its accessibility description, you can use the<br />

following <strong>ActionScript</strong> code:<br />

my_mc.gotoAndStop(2);<br />

if (my_mc._accProps == undefined ) {<br />

my_mc._accProps = new Object();<br />

}<br />

my_mc._accProps.name = "Photo of Mount Rushmore";<br />

Accessibility.updateProperties();<br />

See also<br />

isActive (Accessibility.isActive method), updateProperties<br />

(Accessibility.updateProperties method), hasAccessibility<br />

(capabilities.hasAccessibility property)<br />

_focusrect property<br />

_focusrect = Boolean;<br />

Specifies whether a yellow rectangle appears around the button or movie clip that has<br />

keyboard focus. If _focusrect is set to its default value of true, then a yellow rectangle<br />

appears around the currently focused button or movie clip as the user presses the Tab key to<br />

navigate through objects in a SWF file. Specify false if you do not want to show the yellow<br />

rectangle. This is a global property that can be overridden for specific instances.<br />

Global Properties 121

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!