windowInFront

Usage

-- Lingo syntax
windowObjRef.windowInFront

// JavaScript syntax
windowObjRef.windowInFront;

Description

Window property; returns a reference to the window that is in front of all other windows. Read-only.

Example

These statements set the variable frontWindow to the window in front of all other windows, and then moves that window to the back:

-- Lingo syntax
frontWindow = _player.windowList[5].windowInFront
frontWindow.moveToBack()

// JavaScript syntax
var frontWindow = _player.windowList[5].windowInFront
frontWindow.moveToBack();

See also

moveToBack(), moveToFront(), Window, windowBehind, windowList