MACROMEDIA FLASH MX 2004-USING COMPONENTS Use Manual page 205

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

Advertisement

Example
The following example specifies that the combo box should have 20 or fewer rows visible:
myComboBox.rowCount = 20;
ComboBox.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
}
comboBoxInstance.addEventListener("scroll", listenerObject)
Event object
Along with the standard event object properties, the scroll event has one additional property,
. It is a string with two possible values,
direction
ComboBox
scroll
Description
Event; broadcast to all registered listeners when the drop-down list is scrolled. This is a List
component event that is available to the ComboBox component.
The first usage example uses an
instance. The keyword
instance. For example, the following code, attached to the ComboBox component instance
, sends "_level0.myBox" to the Output panel:
myBox
on(scroll){
trace(this);
}
event, the value is always
handler and must be attached directly to a ComboBox
on()
, used in an
this
on()
or
"horizontal"
.
"vertical"
handler attached to a component, refers to the
. For a
"vertical"
ComboBox component
205

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?

Subscribe to Our Youtube Channel

This manual is also suitable for:

Flash mx

Table of Contents