Events inherited from the UIComponent class
The following table lists the events the Accordion class inherits from the UIComponent class.
Event
UIComponent.focusIn
UIComponent.focusOut
UIComponent.keyDown
UIComponent.keyUp
Accordion.change
Availability
Flash Player 6 (6.0 79.0).
Edition
Flash MX Professional 2004.
Usage
listenerObject = new Object();
listenerObject.change = function(eventObject){
// insert your code here
}
myAccordionInstance.addEventListener("change", listenerObject)
Description
Event; broadcast to all registered listeners when the
properties of an accordion change. This event is broadcast only when a user's mouse click or
keypress changes the value of
changed with ActionScript. This event is broadcast before the transition animation occurs.
Version 2 components use a dispatcher/listener event model. The Accordion component
dispatches a
change
function (also called a handler) on a listener object (
the
addEventListener()
When the event is triggered, it automatically passes an event object (
handler. Each event object has properties that contain information about the event. You can use
these properties to write code that handles the event. For more information, see
class" on page
415.
The Accordion change event also contains two unique event object properties:
•
Number; the index of the child that is about to be selected.
newValue
•
prevValue
108
Chapter 6: Components Dictionary
Description
Broadcast when an object receives focus.
Broadcast when an object loses focus.
Broadcast when a key is pressed.
Broadcast when a key is released.
selectedChild
event when one of its buttons is clicked and the event is handled by a
method and pass it a reference to the handler as a parameter.
Number; the index of the child that was previously selected.
selectedIndex
or
—not when the value is
selectedIndex
listenerObject
and
selectedChild
) that you create. You call
) to the
eventObject
"EventDispatcher
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