MACROMEDIA FLASH MX 2004-USING COMPONENTS Use Manual page 564

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

Advertisement

Example
The following example removes the menu item referenced by the variable
theItem.removeMenuItem();
Menu.removeMenuItemAt()
Availability
Flash Player 6 (6.0 79.0).
Edition
Flash MX Professional 2004.
Usage
myMenu.removeMenuItemAt(index)
Parameters
The index of the menu item to remove.
index
Returns
A reference to the returned menu item (XML node). This value is
in that position.
Description
Method; removes the menu item and all its children at the specified index. If there is no menu
item at that index, calling this method has no effect.
Example
The following example removes a menu item at index 3:
var item = myMenu.removeMenuItemAt(3);
Menu.rollOut
Availability
Flash Player 6 (6.0 79.0).
Edition
Flash MX Professional 2004.
Usage
listenerObject = new Object();
listenerObject.rollOut = function(eventObject){
// insert your code here
}
myMenu.addEventListener("rollOut", listenerObject)
Description
Event; broadcast to all registered listeners when the pointer rolls off a menu item.
564
Chapter 6: Components Dictionary
:
theItem
if there is no item
undefined

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?

Questions and answers

This manual is also suitable for:

Flash mx

Table of Contents