![MACROMEDIA DIRECTOR MX 2004 Reference Download Page 884](http://html1.mh-extra.com/html/macromedia/director-mx-2004/director-mx-2004_reference_687516884.webp)
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.
Summary of Contents for DIRECTOR MX 2004
Page 1: ...DIRECTOR MX 2004 Director Scripting Reference...
Page 48: ...48 Chapter 2 Director Scripting Essentials...
Page 100: ...100 Chapter 4 Debugging Scripts in Director...
Page 118: ...118 Chapter 5 Director Core Objects...
Page 594: ...594 Chapter 12 Methods...
Page 684: ...684 Chapter 14 Properties See also DVD...
Page 702: ...702 Chapter 14 Properties See also face vertices vertices flat...
Page 856: ...856 Chapter 14 Properties JavaScript syntax sprite 15 member member 3 4...
Page 1102: ...1102 Chapter 14 Properties...