menuListener.menuHide = function(evt_obj:Object) {
trace("Menu closed.");
};
// Add listener.
my_menu.addEventListener("menuHide", menuListener);
See also
Menu.menuShow
Menu.menuShow
Availability
Flash Player 6 (6.0.79.0).
Edition
Flash MX Professional 2004.
Usage
Usage 1:
var listenerObject:Object = new Object();
listenerObject.menuShow = function(eventObject:Object) {
// Insert your code here.
};
menuInstance.addEventListener("menuShow", listenerObject);
Usage 2:
on (menuShow) {
// Insert your code here.
}
Description
Event; broadcast to all registered listeners whenever a menu opens. All parent nodes open
menus to show their children.
Version 2 components use a dispatcher-listener event model. When a Menu component
dispatches a
menuShow
attached to a listener object (
addEventListener()
as parameters.
event, the event is handled by a function (also called a handler) that is
listenerObject
method and pass it the name of the handler and listener object
) that you create. You call the
Menu.menuShow
919
Need help?
Do you have a question about the FLASH 8-COMPONENTS LANGUAGE and is the answer not in the manual?
Questions and answers