User Guide

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 windows 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