beautypg.com

Screenoutline.setselectedscreens() – Adobe Extending Flash Professional CS4 User Manual

Page 405

background image

383

EXTENDING FLASH CS4 PROFESSIONAL

ScreenOutline object

Parameters

property

A string that specifies the property to set.

value

The new value for the property. The type of value depends on the property being set.

Available properties are

screenOutline.currentScreen

,

screenOutline.rootScreen

, and

screenOutline.screens

.

Returns
Nothing.

Description
Method; sets the specified property with the specified value for the selected screens.

Example
The following example changes the visibility of the currently selected screens from hidden to visible:

fl.getDocumentDOM().screenOutline.setScreenProperty("hidden", false);

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);