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

Components language reference
Table of Contents

Advertisement

Example
The following example retrieves an array of selected item objects:
var myObjArray:Array = my_list.selectedItems;
The following example displays two List instances on the Stage. When a user selects an item
from the first list, the selected item is copied to the second list. To try this code, you must add
a copy of the List component to the library of the current document. Add the following code
to Frame 1 in the timeline:
this.createClassObject(mx.controls.List, "my_list", 10,
{multipleSelection:true});
my_list.setSize(200, 100);
this.createClassObject(mx.controls.List, "selectedItems_list", 20,
{selectable:false});
selectedItems_list.setSize(200, 100);
selectedItems_list.move(0, 110);
my_list.addItem({data:"flash", label:"Flash"});
my_list.addItem({data:"dreamweaver", label:"Dreamweaver"});
my_list.addItem({data:"coldfusion", label:"ColdFusion"});
var listListener:Object = new Object();
listListener.change = function(evt_obj:Object) {
trace("You have selected " + my_list.selectedItems.length + " items.");
selectedItems_list.dataProvider = my_list.selectedItems;
}
my_list.addEventListener("change", listListener);
See also
List.selectedIndex

List.setPropertiesAt()

Availability
Flash Player 6 (6.0.79.0).
Edition
Flash MX 2004.
Usage
listInstance.setPropertiesAt(index, styleObj)
,
List.selectedItem
,
List.selectedIndices
List.setPropertiesAt()
805

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