User Guide
373
members
See
number of members
memorySize
Syntax
the memorySize
Description
System property; returns the total amount of memory allocated to the program, whether in use or
free memory. This property is useful for checking minimum memory requirements. The value is
given in bytes.
In Windows, the value is the total physical memory available; on the Macintosh, the value is the
entire partition assigned to the application.
Example
This statement checks whether the computer allocates less than 500K of memory and, if it does,
displays an alert:
if the memorySize < 500 * 1024 then alert "There is not enough memory to run
this movie."
See also
freeBlock(), freeBytes(), ramNeeded(), size
menu
Syntax
menu: menuName
itemName | script
itemName | script
...
or
menu: menuName
itemName | script
itemName | script
...
[more menus]
Description
Keyword; in conjunction with the installMenu command, specifies the actual content of custom
menus. Field cast members contain menu definitions; refer to them by the cast member name
or number.
The
menu keyword is followed immediately by a colon, a space, and the name of the menu. In
subsequent lines, specify the menu items for that menu. You can set a script to execute when the
user chooses an item by placing the script after the vertical bar symbol (|). A new menu is defined
by the subsequent occurrence of the
menu keyword.
Note: Menus are not available in Shockwave.