screenOutline.setSelectedScreens()

Availability

Flash MX 2004.

Usage

screenOutline.setSelectedScreens(selection [, bReplaceCurrentSelection])

Parameters

selection
An array of screen names to be selected in the screen outline.

bReplaceCurrentSelection
A Boolean value that, if true, lets you deselect the current selection. The default value is true. If false, Flash extends the current selection to include the specified screens. This parameter is optional.

Returns

Nothing.

Description

Method; selects the specified screens in the screen outline. If multiple screens are specified, the screen with the last index value of the selection array is focused on the Stage.

Example

The following example deselects any currently selected screens, and then selects screens slide1, slide2, slide3, and slide4 in the screen outline:

myArray = new Array("slide1", "slide2", "slide3", "slide4"); 
fl.getDocumentDOM().screenOutline.setSelectedScreens(myArray, true);