beautypg.com

Screen.forcesimple, Screen.hidden – Adobe Extending Flash Professional CS4 User Manual

Page 391

background image

369

EXTENDING FLASH CS4 PROFESSIONAL

Screen object

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 screen and stores it in the

theDescription

variable:

var theDescription = fl.getDocumentDOM().screenOutline.screens[1].description;

The following example sets the description of the screen to

Home Screen

:

fl.getDocumentDOM().screenOutline.screens[1].description = "Home Screen";

screen.forceSimple

Availability
Flash MX 2004.

Usage

screen.forceSimple

Description
Property; a Boolean value that enables or disables accessibility for the object’s children. This is equivalent to the inverse
logic of the Make Child Objects Accessible setting in the Accessibility panel. That is, if

forceSimple

is

true

, it is the

same as the Make Child Object Accessible option being deselected. If

forceSimple

is

false

, it is the same as the Make

Child Object Accessible option being selected.

Example
The following example stores the value of

forceSimple

in the

areChildrenAccessible

variable (a value of

false

means the children of the object are accessible):

var areChildrenAccessible = fl.getDocumentDOM().screenOutline.screens[1].forceSimple

The following example makes the children of the object accessible:

fl.getDocumentDOM().screenOutline.screens[1].forceSimple = false;

screen.hidden

Availability
Flash MX 2004.

Usage

screen.hidden

Description
Property; a Boolean value that specifies whether the screen is visible. A screen with the

hidden

property set to

true

is

not visible in any other screen.