Lingo Dictionary > A-C > on activateWindow

 

on activateWindow

Syntax

on activateWindow 
		statement(s)
end

Description

System message and event handler; contains statements that run in a movie when the user clicks the inactive window and the window comes to the foreground.

You can use an on activateWindow handler in a script that you want executed every time the movie becomes active.

Clicking the main movie (the main Stage) does not generate an on activateWindow handler.

Example

This handler plays the sound Hurray when the window that the movie is playing in becomes active:

on activateWindow
	puppetSound 2, "Hurray"
end

See also

activeWindow, close window, on deactivateWindow, frontWindow, on moveWindow, open