quit()

Usage

-- Lingo syntax
_player.quit()

// JavaScript syntax
_player.quit();

Description

Player method; exits from Director or a projector to the Windows desktop or Macintosh Finder.

Parameters

None.

Example

This statement tells the computer to exit to the Windows desktop or Macintosh Finder when the user presses Control+Q in Windows or Command+Q on the Macintosh:

-- Lingo syntax
if (_key.key = "q" and _key.commandDown) then
   _player.quit()
end if

// JavaScript syntax
if (_key.key == "q" && _key.commandDown) {
   _player.quit();
}

See also

Player