441
Examples
This statement determines whether any custom menus are installed in the movie and, if no menus
are already installed, installs the menu Menubar:
if the number of menus = 0 then installMenu "Menubar"
This statement displays in the Message window the number of menus that are in the current movie:
put the number of menus
See also
installMenu
,
number (menu items)
number (menu items)
Syntax
the number of menuItems of menu
whichMenu
Description
Menu property; indicates the number of menu items in the custom menu specified by
whichMenu
. The
whichMenu
parameter can be a menu name or menu number.
This menu 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.
Examples
This statement sets the variable
fileItems
to the number of menu items in the custom
File menu:
fileItems = the number of menuItems of menu "File"
This statement sets the variable
itemCount
to the number of menu items in the custom menu
whose menu number is equal to the variable
i
:
itemCount = the number of menuItems of menu i
See also
installMenu
,
number (menus)
number (system property)
Syntax
the number of castLibs
Description
System property; returns the number of casts that are in the current movie.
This property can be tested but not set.
Example
This repeat loop uses the Message window to display the number of cast members that are in each
of the movie’s casts:
repeat with n = 1 to the number of castLibs
put castLib(n).name && "contains" && the number of \
members of castLib(n) && "cast members."
end repeat
Содержание DIRECTOR MX-LINGO DICTIONARY
Страница 1: ...Lingo Dictionary Macromedia Director MX...
Страница 756: ...Index 756...