Lingo Dictionary
77
Examples
This statement displays the pathname for the folder that contains the Director application.
put the applicationPath
--"Z:\Program Files\Macromedia\Director"
This statement opens the movie Sunset Boulevard in a window (on a Windows machine):
open window (the applicationPath & "\Film Noir\Sunset Boulevard")
See also
@ (pathname)
,
moviePath
appMinimize
Syntax
appMinimize
Description
Command; on Windows,
appMinimize
causes a projector to minimize to the Windows Task Bar.
On the Macintosh,
appMinimize
causes a projector to be hidden. Once hidden, the projector
may be re-opened from the Macintosh application menu.
This is useful for projectors and MIAWs that play back without a title bar.
See also
windowType
atan()
Syntax
(
number
).atan
atan (
number
)
Description
Math function; calculates the arctangent, which is the angle whose tangent is a specified number.
The result is a value in radians between pi/2 and +pi/2.
Examples
This statement displays the arctangent of 1:
(1).atan
The result, to four decimal places, is 0.7854, or approximately pi/4.
Note that most trigonometric functions use radians, so you may want to convert from degrees
to radians.
This handler lets you convert between degrees and radians:
on DegreesToRads degreeValue
return degreeValue * PI/180
end
The handler displays the conversion of 30 degrees to radians in the Message window:
put DegreesToRads(30)
-- 0.5236
See also
cos()
,
PI
,
sin()
Содержание DIRECTOR MX-LINGO DICTIONARY
Страница 1: ...Lingo Dictionary Macromedia Director MX...
Страница 756: ...Index 756...