MACROMEDIA FLASH MX 2004-USING COMPONENTS Use Manual page 475

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

Advertisement

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
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
. It is a string with two possible values,
direction
ComboBox scroll event, the value is always
Description
Event; broadcast to all registered listeners when a list scrolls.
The first usage example uses an
The keyword
this
component instance. For example, the following code, attached to the List instance
"_level0.myList" to the Output panel:
on(scroll){
trace(this);
}
476
Chapter 6: Components Dictionary
property is the best way to make sure items are fully
rowHeight
handler and must be attached directly to a List instance.
on()
, used inside an
handler attached to a component, refers to the
on()
event has one additional property,
scroll
"horizontal"
.
"vertical"
or
. For a
"vertical"
myList
, sends

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

This manual is also suitable for:

Flash mx

Table of Contents