Parameters
fieldMemberObjRef
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 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
In JavaScript syntax, use the
Parameters
numericExpression
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
sprite property, which requires an integer:
locH
sprite(1).locH = integer(0.333 * stageWidth)
See also
float(),
string()
370
Chapter 12: Methods
Optional. Specifies the field cast member to which a menu is installed.
function.
parseInt()
Required. The number to round to an integer.
command:
installMenu
function.
string()
Need help?
Do you have a question about the DIRECTOR MX 2004-DIRECTOR SCRIPTING and is the answer not in the manual?
Questions and answers