-- Lingo syntax _player.windowPresent(stringWindowName) // JavaScript syntax _player.windowPresent(stringWindowName);
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.
stringWindowName Required. A string that specifies the name of the window to test.
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));