Setting The Window Size And Location For A Miaw; Cropping And Scaling A Miaw - MACROMEDIA DIRECTOR MX-USING DIRECTOR MX Use Manual

Table of Contents

Advertisement

To specify the window type for a MIAW:
Assign a value for the
Different numerical values for the
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
in the Lingo Dictionary.
windowType

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
property to the coordinates of the location where you want the window to appear,
rect
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()
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)

Cropping and scaling a MIAW

You can use Lingo to crop or scale a MIAW.
To crop a MIAW:
Set the
window property to an area that is smaller than the MIAW. See
rect
the Lingo Dictionary.
540
Chapter 21
property.
windowType
windowType
function to define the window rectangle's four coordinates, as shown in the
and
in the Lingo Dictionary.
rect()
property specify different types of window
in
rect(window)

Advertisement

Table of Contents
loading

This manual is also suitable for:

Director mx

Table of Contents