EasyManua.ls Logo

MACROMEDIA DIRECTOR MX 2004-DIRECTOR SCRIPTING - Page 897

MACROMEDIA DIRECTOR MX 2004-DIRECTOR SCRIPTING
1130 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
number (Sprite Channel) 897
number (menu items)
Usage
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 Player.
Example
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 (Sprite Channel)
Usage
-- Lingo syntax
spriteChannelObjRef.number
// JavaScript syntax
spriteChannelObjRef.number;
Description
Sprite Channel property; returns the number of a sprite channel. Read-only.
Example
This statement displays in the Message window the number of a named sprite channel:
-- Lingo syntax
put(channel("Kite String").number)
// JavaScript syntax
put(channel("Kite String").number);
See also
Sprite