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
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...