Lingo Dictionary > D-F > on deactivateWindow |  |

on deactivateWindow

Syntax

    on deactivateWindow
    	statement(s)
    end

Description

System message and event handler; contains statements that run when the window that the movie is playing in is deactivated. The `on deactivate` event handler is a good place for Lingo that you want executed whenever a window is deactivated.

Example

This handler plays the sound Snore when the window that the movie is playing in is deactivated:

    on deactivateWindow
    	puppetSound 2, "Snore"
    end