List.setPropertiesAt()

Availability

Flash Player 6.0.79.

Edition

Flash MX 2004.

Usage

listInstance.setPropertiesAt(index, styleObj)

Parameters

index A number greater than zero 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 properties specified by the styleObj parameter to the item specified by the index parameter. 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"});