on activateWindow ... endis called whenever the movie is brought to the front or clicked on.
on deactivateWindow ... endis called whenever the movie is sent behind another window, or another window is brought to the front or clicked on.
on closeWindow ... end closeWindowis called when the window is closed, as mentioned above.