ScreenOutline object
263
Example
The following example displays the name of the first child of the first screen in the screen outline:
fl.trace(fl.getDocumentDOM().screenOutline.rootScreen.childScreens[0].name);
screenOutline.screens
Availability
Flash MX 2004.
Usage
screenOutline.screens
Description
Read-only property; the array of top level Screen objects contained in the document (see
Screen
object
).
Example
The following example stores the array of Screen objects in the
myArray
variable and then
displays their names in the Output panel:
var myArray = new Array();
if(fl.getDocumentDOM().allowScreens) {
for(var i in fl.getDocumentDOM().screenOutline.screens) {
myArray.push(" "+fl.getDocumentDOM().screenOutline.screens[i].name);
}
fl.trace("The screens array contains objects whose names are: "+".
");
}
screenOutline.setCurrentScreen()
Availability
Flash MX 2004.
Usage
screenOutline.setCurrentScreen(
name
)
Parameters
name
A string that specifies the name screen which should become the currently selected screen.
If the screen is a child of another screen, you do not need to indicate a path or hierarchy.
Returns
Nothing.
Description
Method; sets the current selection in the screen outline to the specified screen.
Содержание FLASH MX 2004-FLASH JAVASCRIPT DICTIONARY
Страница 1: ...Flash JavaScript Dictionary ...
Страница 16: ...16 Contents ...
Страница 40: ...40 Chapter 2 Top level functions ...
Страница 368: ...368 Chapter 3 Objects ...
Страница 386: ...386 Chapter 4 C Level Extensibility ...