The data for the item. This parameter is optional and can be of any data type.
data
An item object that usually has
itemObject
Returns
The index at which the item was added.
Description
Method; adds a new item to the position specified by the
In the first usage example, an item object is always created with the specified
if specified, the
data
The second usage example adds the specified item object.
Calling this method modifies the data provider of the List component. If the data provider is
shared with other components, those components will update as well.
Example
The following line of code adds an item to the third index position, which is the fourth item in
the list:
myList.addItemAt(3,{label:'Red',data:0xFF0000});
List.cellRenderer
Availability
Flash Player 6 (6.0 79.0).
Edition
Flash MX 2004.
Usage
listInstance.cellRenderer
Description
Property; assigns the cell renderer to use for each row of the list. This property must be a class
object reference or a symbol linkage identifier. Any class used for this property must implement
the
CellRenderer
Example
The following example uses a linkage identifier to set a new cell renderer:
myList.cellRenderer = "ComboBoxCell";
462
Chapter 6: Components Dictionary
property.
API.
and
properties.
label
data
parameter.
index
property, and,
label
Need help?
Do you have a question about the FLASH MX 2004-USING COMPONENTS and is the answer not in the manual?