MACROMEDIA FLASH 8-EXTENDING FLASH Manual page 368

Extending flash
Table of Contents

Advertisement

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
Output 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+". ");
}
screen.description
Availability
Flash MX 2004.
Usage
screen.description
Description
Property; a string that is equivalent to the Description field in the Accessibility panel. The
description is read by the screen reader.
Example
The following example gets the description of the object and stores it in the
variable:
var theDescription =
fl.getDocumentDOM().screenOutline.screens[1].description;
The following example sets the description of the object to
fl.getDocumentDOM().screenOutline.screens[1].description = "This is Screen
1"
368
Objects
variable and displays their names in the
myChildren
theDescription
"This is Screen 1"
:

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH 8-EXTENDING FLASH and is the answer not in the manual?

Questions and answers

This manual is also suitable for:

Flash 8

Table of Contents