window

Usage

-- Lingo syntax
_player.window[windowNameOrNum]

// JavaScript syntax
_player.window[windowNameOrNum];

Description

Player property; provides indexed or named access to the Window objects created by the Director player. Read-only.

The windowNameOrNum argument is either a string that specifies the name of the window to access or an integer that specifies the index position of the window to access.

The functionality of this property is identical to the top level window() method.

Example

This statements sets the variable named myWindow to the third window object:

-- Lingo syntax
myWindow = _player.window[3]

// JavaScript syntax
var myWindow = _player.window[3];

See also

Player, window()