Parameters
The x coordinate.
x
The y coordinate.
y
Returns
Nothing.
Description
Method; opens a menu at a specific location. The menu is automatically resized so that all of its
top-level items are visible, and the upper left corner is placed at the specified location in the
coordinate system provided by the component's parent.
If the
and
parameters are omitted, the menu is shown at its previous location.
x
y
Example
The following example displays a menu 10 pixels down and to the right of the (0,0) origin point
of the component's parent:
myMenu.show(10, 10);
See also
Menu.hide()
MenuDataProvider class
ActionScript Class Name
The MenuDataProvider class is a decorator (mix-in) class that adds functionality to the
XMLNode global class. This functionality lets XML instances assigned to a
property use the MenuDataProvider methods and properties to manipulate their own data as well
as the associated menu views.
Keep in mind these concepts about the MenuDataProvider class:
•
MenuDataProvider is a decorator (mix-in) class. You do not need to instantiate it to use it.
•
Menus natively accept XML as a
•
If a Menu class is instantiated, all XML instances in the SWF file are decorated by the
MenuDataProvider class.
•
Only MenuDataProvider methods broadcast events to the Menu components. You can still use
native XML methods, but they do not broadcast events that refresh the Menu views. To
control the data model, use MenuDataProvider methods. For read-only operations like moving
through the Menu hierarchy, use XML methods.
•
All items in the Menu component are XML objects decorated with the MenuDataProvider
class.
•
Changes to item attributes are not reflected in the onscreen menu until redrawing occurs.
568
Chapter 6: Components Dictionary
mx.controls.menuclasses.MenuDataProvider
dataProvider
property value.
Menu.dataProvider
Need help?
Do you have a question about the FLASH MX 2004-USING COMPONENTS and is the answer not in the manual?