Director Help

halt()

Usage

-- Lingo syntax
_movie.halt()

// JavaScript syntax
_movie.halt();

Description

Movie method; exits the current handler and any handler that called it and stops the movie during authoring or quits the projector during runtime from a projector.

Parameters

None.

Example

This statement checks whether the amount of free memory is less than 50K and, if it is, exits all handlers that called it and then stops the movie:

-- Lingo syntax
if (_system.freeBytes < (50*1024)) then
    _movie.halt()
end if

// JavaScript syntax
if (_system.freeBytes < (50*1024)) {
    _movie.halt();
}

See also

Movie