EasyManua.ls Logo

MACROMEDIA DIRECTOR MX 2004-DIRECTOR SCRIPTING - Page 543

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...
sin() 543
shutDown()
Usage
-- Lingo syntax
_system.shutDown()
// JavaScript syntax
_system.shutDown();
Description
System method; closes all open applications and turns off the computer.
Parameters
None.
Example
This statement checks whether the user has pressed Control+S (Windows) or Command+S
(Macintosh) and, if so, shuts down the computer:
See also
System
sin()
Usage
sin(angle)
Description
Math function (Lingo only); calculates the sine of the specified angle. The angle must be
expressed in radians as a floating-point number.
In JavaScript syntax, use the Math object’s
sin() function.
Parameters
angle
Required. Specifies the angle.
Example
This statement calculates the sine of pi/2:
put sin (PI/2.0)
-- 1
See also
PI