Menu.removeall() - MACROMEDIA FLASH 8-COMPONENTS LANGUAGE Reference

Components language reference
Table of Contents

Advertisement

buttonListener.click = function(evt_obj:Object) {
// get reference to the button
var the_button:Button = evt_obj.target;
// Display the menu at the bottom of the button.
my_menu.show(the_button.x, the_button.y + the_button.height);
};
my_button.addEventListener("click", buttonListener);
// Create listener object.
var menuListener:Object = new Object();
menuListener.menuShow = function(evt_obj:Object) {
trace("Menu open.");
};
// Add listener.
my_menu.addEventListener("menuShow", menuListener);
See also
Menu.menuHide

Menu.removeAll()

Availability
Flash Player 6 (6.0.79.0).
Edition
Flash MX Professional 2004.
Usage
menuInstance.removeAll()
Returns
Nothing.
Description
Method; removes all items and refreshes the menu.
Example
The following example creates a menu with two items and, after an interval of a couple of
seconds 2000 milliseconds), removes all nodes from the menu.
Menu.removeAll()
921

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH 8-COMPONENTS LANGUAGE and is the answer not in the manual?

Questions and answers

This manual is also suitable for:

Flash 8

Table of Contents