User Guide

MenuDataProvider.removeMenuItemAt() 943
MenuDataProvider.removeMenuItemAt()
Availability
Flash Player 6 (6.0.79.0).
Edition
Flash MX Professional 2004.
Usage
myMenuDataProvider.removeMenuItemAt(index)
Parameters
index The index of the menu item.
Returns
A reference to the removed menu item. This value is undefined if there is no item in that
position.
Description
Method; removes the child item of the menu item specified by the index parameter. If there is
no menu item at that index, calling this method has no effect.
Any node or menu item in a MenuDataProvider instance can call the methods of the
MenuDataProvider class.
Example
The following example creates a menu with three menu items and, after an interval of a
couple of seconds (2000 milliseconds), calls
removeMenuItemAt() to remove the first
menu item.