traceLogFile

Usage

-- Lingo syntax
_movie.traceLogFile

// JavaScript syntax
_movie.traceLogFile;

Description

Movie property; specifies the name of the file in which the Message window display is written. Read/write.

You can close the file by setting the traceLogFile property to EMPTY (Lingo) or an empty string " " (JavaScript syntax). Any output that would appear in the Message window is written into this file. You can use this property for debugging when running a movie in a projector and when authoring.

Example

This statement instructs Lingo to write the contents of the Message window in the file "Messages.txt" in the same folder as the current movie:

-- Lingo syntax
_movie.traceLogFile = _movie.path & "Messages.txt"

// JavaScript syntax
_movie.traceLogFile = _movie.path + "Messages.txt";

This statement closes the file that the Message window display is being written to:

-- Lingo syntax
_movie.traceLogFile = ""

// JavaScript syntax
_movie.traceLogFile = "";

See also

Movie