ActionScript 2.0 Components Language Reference |
|
|
|
| List component > List.rowHeight | |||
Flash Player 6 (6.0.79.0).
Flash MX 2004.
listInstance.rowHeight
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 rowHeight property is the best way to make sure items are fully displayed. The default value is 20.
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;
|
|
|
|