Movies in a Window
541
To scale a MIAW:
•
Set the
drawRect
property to coordinates that are smaller than the MIAW’s 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 it’s 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.
Содержание DIRECTOR MX-USING DIRECTOR MX
Страница 1: ...Using Director MX Macromedia Director MX...
Страница 12: ...Contents 12...
Страница 156: ...Chapter 4 156...
Страница 202: ...Chapter 6 202...
Страница 244: ...Chapter 7 244...
Страница 292: ...Chapter 10 292...
Страница 330: ...Chapter 12 330...
Страница 356: ...Chapter 13 356...
Страница 372: ...Chapter 14 372...
Страница 442: ...Chapter 16 442...
Страница 472: ...Chapter 18 472...
Страница 520: ...Chapter 19 520...
Страница 536: ...Chapter 20 536...
Страница 562: ...Chapter 23 562...
Страница 566: ...Chapter 24 566...
Страница 602: ...Chapter 27 602...