Creating a MIAW using Lingo
In Lingo, you create a MIAW by specifying a window's rectangle (
and then specifying the filename for the movie that is assigned to the window. You can also make
the window visible, change its type, set its title, and set the window's size and location.
The easiest way to create a MIAW is to open a window for an existing movie.
To create a new MIAW by opening a window for an existing movie:
•
Use the following Lingo:
open window("movieName")
This statement creates a window, assigns it the movie
location where
movieName
in the rest of this chapter to set various attributes of the MIAW.
You can also use a movie's filename as the argument for the
approach assigns that movie to a window and instructs Director to use the filename as the
window title.
To create a MIAW using a filename and the Open Window command:
•
Use the following Lingo:
on beginNewMovie theMovie
global newWindow
set newWindow to window theMovie
set newWindow.titleVisible to FALSE
open newWindow
end beginNewMovie
This version of the handler allows the window
property. The default is to use the
You can also assign a MIAW to a variable, which makes it easier to write the handler and reuse it.
To assign a MIAW to a variable:
•
Use the following Lingo:
on beginNewMovie theMovie
global newWindow
set newWindow to window "The Big Picture"
set newWindow.rect to rect(0, 0, 250, 200)
set newWindow.filename to theMovie
set newWindow.titleVisible to FALSE
open newWindow
end beginNewMovie
The variable
newWindow
property of the window to a
rect
handler makes the title bar at the top of the window invisible, and opens the window.
Opening and closing a MIAW
Use the commands in this section to open and close movies in windows. For more information,
see the Lingo Dictionary.
538
Chapter 21
was originally authored. You can use the commands that are discussed
newWindow
property of the movie that is being opened in the window.
rect
contains a new window named The Big Picture. The handler sets the
object, and then assigns a movie file to the window. The
rect
property) on the Stage
rect
, and opens it on the Stage at the
movieName
command. This
open window
to use the default setting for its
rect
Need help?
Do you have a question about the DIRECTOR MX-USING DIRECTOR MX and is the answer not in the manual?
Questions and answers