User Guide
List component 471
List.labelFunction
Availability
Flash Player 6 (6.0 79.0).
Edition
Flash MX 2004.
Usage
listInstance.labelFunction
Description
Property; specifies a function that determines which field (or field combination) of each item to
display. This function receives one parameter,
item, which is the item being rendered, and must
return a string representing the text to display.
Example
The following example makes the label display some formatted details of the items:
list.labelFunction = function(item){
return "The price of product " + item.productID + ", " + item.productName +
" is $"
+ item.price;
}
See also
List.labelField
List.length
Availability
Flash Player 6 (6.0 79.0).
Edition
Flash MX 2004.
Usage
listInstance.length
Description
Property (read-only); the number of items in the list.
Example
The following example places the value of length in a variable:
var len = myList.length;