User Guide
884 Chapter 14: Properties
All names must be unique. If created through Lingo, the name returned is the name given in the
constructor function. If created through a 3D-authoring program the name returned may be the
name of the model.
Example
This statement sets the name of the fifth camera in the cast member TableScene to BirdCam:
member("TableScene").camera[5].name = "BirdCam"
name (menu property)
Usage
the name of menu(whichMenu)
the name of menu whichMenu
Description
Menu property; returns a string containing the name of the specified menu number.
This property can be tested but not set. Use the
installMenu command to set up a custom
menu bar.
Note: Menus are not available in Shockwave Player.
Example
This statement assigns the name of menu number 1 to the variable firstMenu:
firstMenu = menu(1).name
The following handler returns a list of menu names, one per line:
on menuList
theList = []
repeat with i = 1 to the number of menus
theList[i] = the name of menu i
end repeat
return theList
end menuList
See also
number (menus), name (menu item property)
name (menu item property)
Syntax
the name of menuItem(whichItem) of menu(whichMenu)
the name of menuItem whichItem of menu whichMenu
Description
Menu property; determines the text that appears in the menu item specified by whichItem in the
menu specified by whichMenu. The whichItem argument is either a menu item name or a menu
item number;
whichMenu is either a menu name or a menu number.
This property can be tested and set.
Note: Menus are not available in Shockwave Player.