The following example resizes the list using the
method and then sets a row count
setSize()
of 8 items:
my_list.addItem({data:"flash", label:"Flash"});
my_list.addItem({data:"dreamweaver", label:"Dreamweaver"});
my_list.addItem({data:"coldfusion", label:"ColdFusion"});
my_list.setSize(200, 30);
my_list.rowCount = 8;
trace("my_list has " + my_list.rowCount + " rows.");
List.rowHeight
Availability
Flash Player 6 (6.0.79.0).
Edition
Flash MX 2004.
Usage
listInstance.rowHeight
Description
Property; the height, in pixels, of every row in the list. The font settings do not make the rows
grow to fit, so setting the
property is the best way to make sure items are fully
rowHeight
displayed. The default value is 20.
Example
The following example sets each row to 30 pixels:
my_list.rowHeight = 30;
The following example sets the row height for each row to 30 pixels and then resizes the list to
match the total number of items it contains:
my_list.addItem({data:"flash", label:"Flash"});
my_list.addItem({data:"dreamweaver", label:"Dreamweaver"});
my_list.addItem({data:"coldfusion", label:"ColdFusion"});
my_list.rowHeight = 30;
my_list.rowCount = my_list.length;
798
List component
Need help?
Do you have a question about the FLASH 8-COMPONENTS LANGUAGE and is the answer not in the manual?