User Guide

370 Chapter 12: Methods
Parameters
fieldMemberObjRef
Optional. Specifies the field cast member to which a menu is installed.
Example
This statement installs the menu defined in field cast member 37:
installMenu 37
This statement installs the menu defined in the field cast member named Menubar:
installMenu member "Menubar"
This statement disables menus that were installed by the installMenu command:
installMenu 0
See also
menu
integer()
Usage
(numericExpression).integer
integer(numericExpression)
Description
Function (Lingo only); rounds the value of an expression to the nearest whole integer.
You can force an integer to be a string by using the
string() function.
In JavaScript syntax, use the
parseInt() function.
Parameters
numericExpression
Required. The number to round to an integer.
Example
This statement rounds off the number 3.75 to the nearest whole integer:
put integer(3.75)
-- 4
The following statement rounds off the value in parentheses. This provides a usable value for the
locH sprite property, which requires an integer:
sprite(1).locH = integer(0.333 * stageWidth)
See also
float(), string()