Description
Property; specifies the name of a field to be used as an icon identifier. If the field has a value of
, the default icon specified by the
undefined
is
, no icon is used.
undefined
Example
The following example sets the
list.iconField = "icon"
See also
List.iconFunction
List.iconFunction
Availability
Flash Player 6 (6.0 79.0).
Edition
Flash MX 2004.
Usage
listInstance.iconFunction
Description
Property; specifies a function that determines which icon each row will use to display its item.
This function receives a parameter,
string representing the icon's symbol identifier.
Example
The following example adds icons that indicate whether a file is an image or a text document. If
the
data.fileExtension
"pictureIcon"
list.iconFunction = function(item){
var type = item.data.fileExtension;
if (type=="jpg" || type=="gif") {
return "pictureIcon";
} else if (type=="doc" || type=="txt") {
return "docIcon";
}
}
iconField
item
field contains a value of
, and so on.
style is used. If the
defaultIcon
property to the
icon
, which is the item being rendered, and must return a
or
"jpg"
"gif"
defaultIcon
property of each item:
, the icon used will be
List component
style
467
Need help?
Do you have a question about the FLASH MX 2004-USING COMPONENTS and is the answer not in the manual?