Lingo Dictionary > A-C > activeWindow |  |

activeWindow

Syntax

    the activeWindow

Description

Movie property; indicates which movie window is currently active. For the main movie, `activeWindow` is the Stage. For a movie in a window, `activeWindow` is the movie in the window.

Example

This example places the word Active in the title bar of the clicked window and places the word Inactive in the title bar of all other open windows:

    on activateWindow
    	 set clickedWindow = (the windowlist).getPos(the activeWindow)
    	 set windowCount = (the windowlist).count
    	 repeat with x = 1 to windowCount
    		if x = clickedWindow then
    			(the activeWindow).title = "Active"
    		else
    			(the windowlist[x]).title = "Inactive"
    		end if
    	 end repeat
    end

See also

`on activateWindow`, `windowList`