beautypg.com

Parameter.name, Parameter.removeitem() – Adobe Extending Flash Professional CS5 User Manual

Page 375

background image

353

EXTENDING FLASH PROFESSIONAL

Parameter object

Last updated 5/2/2011

Example
The following example sets the first parameter for a Slide, which is the

autoKeyNav

parameter. To set the parameter

to one of its acceptable values (

true

,

false

, or

inherit

)

parameter.listIndex

is set to the index of the item in the

list (0 for

true

, 1 for

false

, 2 for

inherit

).

var parms = fl.getDocumentDOM().screenOutline.screens[1].parameters;

parms[0].listIndex = 1;

parameter.name

Availability
Flash MX 2004.

Usage

parameter.name

Description
Read-only property; a string that specifies the name of the parameter.

Example
The following example shows the name of the fifth parameter for the selected component:

var parms = fl.getDocumentDOM().selection[0].parameters;

fl.trace("name: " + parms[4].name);

The following example shows the name of the fifth parameter for the specified screen:

var parms = fl.getDocumentDOM().screenOutline.screens[1].parameters; fl.trace("name: " +

parms[4].name);

parameter.removeItem()

Availability
Flash MX 2004.

Usage

parameter.removeItem(index)

Parameters

index

The zero-based integer index of the item to be removed from the screen or component property.

Returns
Nothing.

Description
Method; removes an element of the list, object, or array type of a screen or component parameter.

This manual is related to the following products: