beautypg.com

Screenoutline.deletescreen(), Screenoutline.duplicatescreen() – Adobe Extending Flash Professional CS4 User Manual

Page 399

background image

377

EXTENDING FLASH CS4 PROFESSIONAL

ScreenOutline object

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 don’t pass a value for screenName, the

currently selected screen(s) and their children are deleted. This parameter is optional.

Returns
Nothing.

Description
Method; deletes the currently selected screen(s), or a specified screen, and the children of the screen(s).

Example
The following example deletes the screen named

apple

and all its children:

fl.getDocumentDOM().screenOutline.deleteScreen("apple");

screenOutline.duplicateScreen()

Availability
Flash MX 2004.

Usage

screenOutline.duplicateScreen([screenName])

Parameters

screenName

A string value that specifies the screen name to duplicate. If you don’t pass a value for screenName, the

currently selected screen(s) are duplicated. This parameter is optional.