Chapter 21
540
To specify the window type for a MIAW:
•
Assign a value for the
windowType
property.
Different numerical values for the
windowType
property specify different types of window
styles. When you don’t specify a window type, Director uses a movable, sizable window without
a zoom box and with a title bar, which is type -1. You can set the title property only for windows
of type -1.
In most cases, it’s best to specify window settings before you open the window to avoid delays as
the window redraws.
See
windowType
in the Lingo Dictionary.
Setting the window size and location for a MIAW
Setting the screen coordinates for a MIAW lets you control the size of the window and where it
appears. Setting the coordinates before the movie appears controls the initial position of the
window; setting them after the window appears moves the window.
To specify the screen coordinates for a MIAW:
Set the
rect
property to the coordinates of the location where you want the window to appear,
selecting from the following options:
•
Define the coordinates as a rectangle in this order: left, top, right, and bottom, as shown in the
following statement:
set window.rect "Sample" = [0, 0, 200, 300]
•
Use the
rect()
function to define the window rectangle’s four coordinates, as shown in the
following statements:
set aRect = rect(0, 0, 200, 300)
set window.rect "Sample" = aRect
For your convenience, assign the coordinates to a variable and use the variable in your Lingo
statements.
See
rect(window)
and
rect()
in the Lingo Dictionary.
Cropping and scaling a MIAW
You can use Lingo to crop or scale a MIAW.
To crop a MIAW:
•
Set the
rect
window property to an area that is smaller than the MIAW. See
rect(window)
in
the Lingo Dictionary.
Summary of Contents for DIRECTOR MX-USING DIRECTOR MX
Page 1: ...Using Director MX Macromedia Director MX...
Page 12: ...Contents 12...
Page 156: ...Chapter 4 156...
Page 202: ...Chapter 6 202...
Page 244: ...Chapter 7 244...
Page 292: ...Chapter 10 292...
Page 330: ...Chapter 12 330...
Page 356: ...Chapter 13 356...
Page 372: ...Chapter 14 372...
Page 442: ...Chapter 16 442...
Page 472: ...Chapter 18 472...
Page 520: ...Chapter 19 520...
Page 536: ...Chapter 20 536...
Page 562: ...Chapter 23 562...
Page 566: ...Chapter 24 566...
Page 602: ...Chapter 27 602...