Lingo Dictionary > A-C > on closeWindow |  |

on closeWindow

Syntax

    on closeWindow
    	statement(s)
    end

Description

System message and event handler; contains statements that run when the user closes the window for a movie by clicking the window's close box.

The`on closeWindow` handler is a good place to put Lingo commands that you want executed every time the movie's window closes.

Example

This handler tells Director to `forget` the current window when the user closes the window that the movie is playing in:

    on closeWindow
    	-- perform general housekeeping here
    	forget the activeWindow
    end