User Guide

Movies in a Window 541
To scale a MIAW:
Set the drawRect property to coordinates that are smaller than the MIAWs original size and
apply the position to the window, as shown in the following example:
set aRect = [0, 0, 200, 300]
set window("Sample").drawRect = aRect -- sets window size to 200 x 300
set window("Sample").drawRect = aRect/2 -- scales the window to half its
original size
When the drawRect property specifies a window rectangle that is smaller than the movie, the
window appears in the upper left corner, and the movie is compressed to fit within the window.
See
drawRect in the Lingo Dictionary.
Controlling the appearance of a MIAW
You can use Lingo commands and properties to control whether a window is visible, is in front of
or behind other windows, and has a title. For more information, see the Lingo Dictionary.
To specify whether the window is visible:
Set the window’s visible window property. To avoid a potential time lag when the
window opens, use the
preLoadMovie command to preload the movie before its needed and
then open the window when it needs to be visible. See visible (window property) in the
Lingo Dictionary.
To control whether a movie appears in front of or behind other windows:
Use the moveToFront and moveToBack commands. See moveToFront and moveToBack in the
Lingo Dictionary.
To assign a title to a window:
Set the title window property. See title in the Lingo Dictionary.
Listing the current movies in windows
The windowList property displays a list of all known MIAWs in the main movie.
For example, the following statement displays a list of current MIAW names in the
Message window.
put the windowList
See windowList in the Lingo Dictionary.