MACROMEDIA FLASH MX 2004-USING COMPONENTS Use Manual page 474

Using components
Hide thumbs Also See for FLASH MX 2004-USING COMPONENTS:
Table of Contents

Advertisement

List.rowCount
Availability
Flash Player 6 (6.0 79.0).
Edition
Flash MX 2004.
Usage
listInstance.rowCount
Description
Property; the number of rows that are at least partially visible in the list. This is useful if you've
scaled a list by pixel and need to count its rows. Conversely, setting the number of rows
guarantees that an exact number of rows will be displayed, without a partial row at the bottom.
The code
myList.rowCount = num
myList.setSize(myList.width, h)
The default value is based on the height of the list as set during authoring, or set by the
list.setSize()
Example
The following example discovers the number of visible items in a list:
var rowCount = myList.rowCount;
The following example makes the list display four items:
myList.rowCount = 4;
This example removes a partial row at the bottom of a list, if there is one:
myList.rowCount = myList.rowCount;
This example sets a list to the smallest number of rows it can fully display:
myList.rowCount = 1;
trace("myList has "+myList.rowCount+" rows");
List.rowHeight
Availability
Flash Player 6 (6.0 79.0).
Edition
Flash MX 2004.
Usage
listInstance.rowHeight
is equivalent to the code
(where
method (see
UIObject.setSize()
is the height required to display
h
).
items).
num
List component
475

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH MX 2004-USING COMPONENTS and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

This manual is also suitable for:

Flash mx

Table of Contents