User Guide
Accordion.change 51
Events inherited from the UIComponent class
The following table lists the events the Accordion class inherits from the UIComponent class.
Accordion.change
Availability
Flash Player 6 (6.0.79.0).
Edition
Flash MX Professional 2004.
Usage
Usage 1:
var listenerObject:Object = new Object();
listenerObject.change = function(eventObject:Object) {
// Insert your code here.
};
accordionInstance.addEventListener("change", listenerObject);
Usage 2:
on (change) {
// Insert your code here.
}
Description
Event; broadcast to all registered listeners when the selectedIndex and selectedChild
properties of an accordion change. This event is broadcast only when a user’s mouse click or
keypress changes the value of
selectedChild or selectedIndex—not when the value is
changed with ActionScript. This event is broadcast before the transition animation occurs.
Version 2 components use a dispatcher/event listener model. The Accordion component
dispatches a
change event when one of its buttons is clicked and the event is handled by a
function (also called a handler) on a listener object (
listenerObject) that you create. You
call the
addEventListener() method and pass it a reference to the handler as a parameter.
Event Description
UIComponent.focusIn Broadcast when an object receives focus.
UIComponent.focusOut Broadcast when an object loses focus.
UIComponent.keyDown Broadcast when a key is pressed.
UIComponent.keyUp Broadcast when a key is released.