frontWindow

Usage

-- Lingo syntax
_player.frontWindow

// JavaScript syntax
_player.frontWindow;

Description

Player property; indicates which movie in a window (MIAW) is currently frontmost on the screen. Read-only.

When the Stage is frontmost, frontWindow is the Stage. When a media editor or floating palette is frontmost, frontWindow returns VOID (Lingo) or null (JavaScript syntax).

Example

This statement determines whether the window "Music" is currently the frontmost window and, if it is, brings the window "Try This" to the front:

-- Lingo syntax
if (_player.frontWindow = "Music") then
   window("Try This").moveToFront()
end if

// JavaScript syntax
if (_player.frontWindow = "Music") {
   window("Try This").moveToFront();
}

See also

Player