List.sortitems() - MACROMEDIA FLASH 8-COMPONENTS LANGUAGE Reference

Components language reference
Table of Contents

Advertisement

Parameters
A number greater than 0 or less than
indicating the index of the item
index
List.length
to change.
An object that enumerates the properties and values to set.
styleObj
Returns
Nothing.
Description
Method; applies the specified properties to the specified item. The supported properties are
and
.
icon
backgroundColor
Example
The following example changes the background color of the third item to red and gives it an
icon. To try this code, drag a List component to the Stage and give it the instance name
my_list. Next, add a MovieClip/Graphic symbol to the library with a linkage identifier of
"file". Add the following code to Frame 1 in the timeline:
var my_list:mx.controls.List;
my_list.setSize(200, 100);
my_list.addItem({data:"flash", label:"Flash"});
my_list.addItem({data:"dreamweaver", label:"Dreamweaver"});
my_list.addItem({data:"coldfusion", label:"ColdFusion"});
my_list.setPropertiesAt(2, {backgroundColor:0xFF0000, icon: "file"});

List.sortItems()

Availability
Flash Player 6 (6.0.79.0).
Edition
Flash MX 2004.
Usage
listInstance.sortItems(compareFunc)
806
List component

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH 8-COMPONENTS LANGUAGE and is the answer not in the manual?

Questions and answers

This manual is also suitable for:

Flash 8

Table of Contents