590
Chapter 12: Methods
Example
This statement sets the variable
myWindow
to the window named Collections:
-- Lingo syntax
myWindow = window("Collections")
// JavaScript syntax
var myWindow = window("Collections");
See also
Window
windowPresent()
Usage
-- Lingo syntax
_player.windowPresent(
stringWindowName
)
// JavaScript syntax
_player.windowPresent(
stringWindowName
);
Description
Player method; indicates whether the object specified by
stringWindowName
is running as a
movie in a window (
TRUE
) or not (
FALSE
).
If a window had been opened,
windowPresent()
remains
TRUE
for the window until the window
has been removed from the
windowList
property.
The
stringWindowName
argument must be the window’s name as it appears in the
windowList
property.
Parameters
stringWindowName
Required. A string that specifies the name of the window to test.
Example
This statement tests whether the object
myWindow
is a movie in a window (MIAW) and then
displays the result in the Message window:
-- Lingo syntax
put(_player.windowPresent(myWindow))
// JavaScript syntax
put(_player.windowPresent(myWindow));
See also
Player
,
windowList
Summary of Contents for DIRECTOR MX 2004
Page 1: ...DIRECTOR MX 2004 Director Scripting Reference...
Page 48: ...48 Chapter 2 Director Scripting Essentials...
Page 100: ...100 Chapter 4 Debugging Scripts in Director...
Page 118: ...118 Chapter 5 Director Core Objects...
Page 594: ...594 Chapter 12 Methods...
Page 684: ...684 Chapter 14 Properties See also DVD...
Page 702: ...702 Chapter 14 Properties See also face vertices vertices flat...
Page 856: ...856 Chapter 14 Properties JavaScript syntax sprite 15 member member 3 4...
Page 1102: ...1102 Chapter 14 Properties...