User Guide

480 Chapter 6: Components Dictionary
List.setPropertiesAt()
Availability
Flash Player 6 (6.0 79.0).
Edition
Flash MX 2004.
Usage
listInstance.setPropertiesAt(index, styleObj)
Parameters
index
A number greater than 0 or less than List.length indicating the index of the item
to change.
styleObj An object that enumerates the properties and values to set.
Returns
Nothing.
Description
Method; applies the specified properties to the specified item. The supported properties are icon
and
backgroundColor.
Example
The following example changes the fourth item to black and gives it an icon:
myList.setPropertiesAt(3, {backgroundColor:0x000000, icon: "file"});
List.sortItems()
Availability
Flash Player 6 (6.0 79.0).
Edition
Flash MX 2004.
Usage
listInstance.sortItems(compareFunc)
Parameters
compareFunc
A reference to a function. This function is used to compare two items to
determine their sort order.
For more information, see
Array.sort() in Flash ActionScript Language Reference.
Returns
The index at which the item was added.