User Guide

476 Chapter 6: Components Dictionary
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
rowHeight property is the best way to make sure items are fully
displayed. The default value is 20.
Example
The following example sets each row to 30 pixels:
myList.rowHeight = 30;
List.scroll
Availability
Flash Player 6 (6.0 79.0).
Edition
Flash MX 2004.
Usage
Usage 1:
on(scroll){
// your code here
}
Usage 2:
listenerObject = new Object();
listenerObject.scroll = function(eventObject){
// your code here
}
listInstance.addEventListener("scroll", listenerObject)
Event object
Along with the standard event object properties, the scroll event has one additional property,
direction. It is a string with two possible values, "horizontal" or "vertical". For a
ComboBox scroll event, the value is always
"vertical".
Description
Event; broadcast to all registered listeners when a list scrolls.
The first usage example uses an
on() handler and must be attached directly to a List instance.
The keyword
this, used inside an on() handler attached to a component, refers to the
component instance. For example, the following code, attached to the List instance
myList, sends
“_level0.myList” to the Output panel:
on(scroll){
trace(this);
}