Director Help

quit()

Usage

-- Lingo syntax
_player.quit()

// JavaScript syntax
_player.quit();

Description

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

Parameters

None.

Example

This statement tells the computer to exit to the Windows desktop or Mac Finder when the user presses Control+Q (Windows) or Command+Q (Mac):

-- 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