Screen.silent, Screen.tabindex – Adobe Extending Flash Professional CS4 User Manual
Page 395
373
EXTENDING FLASH CS4 PROFESSIONAL
Screen object
Example
The following example checks to see if the current document is a slide or form, and if it is, retrieves and shows the
sequence of screens in the Output panel:
if(fl.getDocumentDOM().allowScreens) {
var myCurrent = fl.getDocumentDOM().screenOutline.rootScreen.childScreens[1].name;
var myNext = fl.getDocumentDOM().screenOutline.rootScreen.childScreens[1].prevScreen.name;
fl.trace(" The previous screen to "+myCurrent+" is "+myNext+". ");
}
screen.silent
Availability
Flash MX 2004.
Usage
screen.silent
Description
Property; a Boolean value that specifies whether the object is accessible. This is equivalent to the inverse logic of the
Make Object Accessible setting in the Accessibility panel. That is, if
silent
is
true
, it is the same as having the Make
Object Accessible option deselected in the Accessibility panel. If
silent
is
false
, it is the same as having the Make
Object Accessible option selected in the Accessibility panel.
Example
The following example retrieves the
silent
value of the object (a value of
false
means the object is accessible):
var isSilent = fl.getDocumentDOM().screenOutline.screens[1].silent;
The following example sets the object to be accessible:
fl.getDocumentDOM().screenOutline.screens[1].silent = false;
screen.tabIndex
Availability
Flash MX 2004.
Usage
screen.tabIndex
Description
Property; equivalent to the Tab Index field in the Accessibility panel. This value lets you determine the order in which
objects are accessed when the user presses the Tab key.
Example
The following example gets the tab index of the object: