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,
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
var len = myList.length;
, which is the item being rendered, and must
item
in a variable:
length
List component
471
Need help?
Do you have a question about the FLASH MX 2004-USING COMPONENTS and is the answer not in the manual?
Questions and answers