User Guide

260 Chapter 3: Objects
fl.trace(myArray[i].name)
}
screenOutline.insertNestedScreen()
Availability
Flash MX 2004.
Usage
screenOutline.insertNestedScreen( [ name [, referenceScreen [, screenTypeName
] ] ])
Parameters
name
A string indicating the name of the new screen to insert. An empty name will insert a
screen with a default screen name, such as Slide
n or Form n (where n is the first available unique
number). This parameter is optional.
The optional
referenceScreen parameter is a string indicating the name of the screen into
which the new screen is inserted as a child. If this parameter is not specified, the new screen is
inserted as a child of the currently selected screen.
The optional
screenTypeName parameter is a string that specifies the name of the screen type to
attach to the new nested screen. The screen type and classname will be set for this screen. If this
parameter is not specified, the type is inherited from the parent screen. Acceptable values are
"Form" and "Slide".
Returns
A Screen object.
Description
Method; inserts a nested screen of a specific type into a particular location in the screen outline.
Example
The following example inserts slide2 as a child of slide1:
fl.getDocumentDOM().screenOutline.insertNestedScreen("slide2", "slide1",
"Slide");
screenOutline.insertScreen()
Availability
Flash MX 2004.
Usage
screenOutline.insertScreen( [name [, referenceScreen [, screenTypeName ] ] ])
Parameters
name
A string indicating the name of the new screen to insert. If this parameter is omitted, the
method inserts a screen with a default screen name, such as Slide
n or Form n (where n is the first
available unique number). This parameter is optional.