User Guide

378 Objects
Description
Method; inserts all the screens, or a named screen and its children, from a specified document
under the currently selected screen. If more than one screen is selected, the screen(s) are
inserted under the last selected screen, as its sibling.
Example
The following example copies the slide1” screen from the myTarget.fla file on the Desktop
into the current document (substitute your user name for
userName):
fl.getDocumentDOM().screenOutline.copyScreenFromFile("file:///C|/Documents
and Settings/userName/Desktop/myTarget.fla", "slide1");
screenOutline.currentScreen
Availability
Flash MX 2004.
Usage
screenOutline.currentScreen
Description
Property; a Screen object, the currently selected screen (see Screen object).
Example
The following example stores the currentScreen object in the myScreen variable and then
displays the name of that screen in the Output panel:
var myScreen = fl.getDocumentDOM().screenOutline.currentScreen;
fl.trace(myScreen.name);
screenOutline.deleteScreen()
Availability
Flash MX 2004.
Usage
screenOutline.deleteScreen( [screenName] )
Parameters
screenName A string that specifies the name of the screen to be deleted. If you dont pass a
value for
screenName, the currently selected screen(s) and their children are deleted. This
parameter is optional.