Parameter object
339
Description
Method; inserts an item in a list, object, or array. If a parameter is a list, object, or array, the
value
property is an array.
Example
The following example inserts the value of
"New Value"
into the
labelPlacement
parameter:
// Select an instance of a Button component on the Stage.
var parms = fl.getDocumentDOM().selection[0].parameters;
parms[2].insertItem(0, "name", "New Value", "String");
var values = parms[2].value;
for(var prop in values){
fl.trace("labelPlacement parameter value = " + values[prop].value);
}
parameter.listIndex
Availability
Flash MX 2004.
Usage
parameter.listIndex
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;
Summary of Contents for FLASH 8-EXTENDING FLASH
Page 1: ...Extending Flash...
Page 38: ...38 Top Level Functions and Methods...
Page 532: ...532 Objects...
Page 554: ...554 C Level Extensibility...