Screen.accname; Screen.childscreens - MACROMEDIA FLASH MX 2004-FLASH JAVASCRIPT DICTIONARY Manual

Flash javascript dictionary
Hide thumbs Also See for FLASH MX 2004-FLASH JAVASCRIPT DICTIONARY:
Table of Contents

Advertisement

screen.accName

Availability
Flash MX 2004.
Usage
screen.accName
Description
Property; a string that is equivalent to the Name field in the Accessibility panel. Screen readers
identify objects by reading the name aloud.
Example
The following example stores the value of the name of the object in the
var theName = fl.getDocumentDOM().screenOutline.screens[1].accName;
The following example sets the name of the object to
fl.getDocumentDOM().screenOutline.screens[1].accName = 'Home Button';

screen.childScreens

Availability
Flash MX 2004.
Usage
screen.childScreens
Description
Read-only property; the array of child screens for this screen. The array is empty if there are no
child screens.
Example
The following example checks to see if the current document is a slide or form, and if it is, stores
the array of child screens in the
panel:
var myChildren = new Array();
if(fl.getDocumentDOM().allowScreens) {
var myParent = fl.getDocumentDOM().screenOutline.rootScreen.name
for (i in fl.getDocumentDOM().screenOutline.rootScreen.childScreens) {
myChildren.push("
"+fl.getDocumentDOM().screenOutline.rootScreen.childScreens[i].name);
}
fl.trace(" The child screens of "+myParent+" are "+myChildren+". ");
}
variable and displays their names in the Output
myChildren
theName
:
"Home Button"
variable:
Screen object
249

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH MX 2004-FLASH JAVASCRIPT DICTIONARY and is the answer not in the manual?

Subscribe to Our Youtube Channel

This manual is also suitable for:

Flash mx 2004 - actionscript

Table of Contents