Parameter object
239
Description
Property; the value of the selected list item. This property is valid only if the
valueType
parameter is
"List"
.
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 remove from the screen or component
property.
Returns
Nothing.
Summary of Contents for FLASH MX 2004-FLASH JAVASCRIPT DICTIONARY
Page 1: ...Flash JavaScript Dictionary ...
Page 16: ...16 Contents ...
Page 40: ...40 Chapter 2 Top level functions ...
Page 368: ...368 Chapter 3 Objects ...