About Miaws; Creating Or Declaring A Miaw; Opening And Closing A Miaw - MACROMEDIA DIRECTOR MX 2004-USING DIRECTOR Use Manual

Hide thumbs Also See for DIRECTOR MX 2004-USING DIRECTOR:
Table of Contents

Advertisement

About MIAWs

A MIAW is the combination of a window object and a movie object. In fact, there is no such
thing as a MIAW object, but it is the name used to describe the concept of this unique
combination of window and movie objects. Most of the properties described in this section are
really window properties, but apply to a MIAW. MIAWs and windows are not identical, and it is
important to keep that in mind.

Creating or declaring a MIAW

You must first explicitly create or declare the MIAW before you can use it or set its properties.
To explicitly declare a new MIAW in Lingo:
Use the following script:
window().new ("window name")
To explicitly declare a new MIAW in JavaScript syntax:
Use the following script:
new window("window name");
These statements create a window with the name and title "window name" and assign it the
movie "window name" to play in that window.
Note: When you declare a MIAW, it automatically is added to the player's window list.
Assigning a MIAW a filename and title
Although the simple MIAW declaration line works well when the movie and the window title and
name are all the same, you can also explicitly set the filename and title of the MIAW after creating
the MIAW.
You can use a movie's filename as the argument for the
assigns that movie to a window and instructs Director to use the filename as the window title.
To assign a filename and title to a MIAW:
Use the following script to associate the movie
window("window name").filename = "my_Movie"
Use the following script to assign the window's title to be
window("window name").title = "window title"
The default behavior of a MIAW is to size itself using the
opened in the window.

Opening and closing a MIAW

Use the methods in this section to open and close movies in windows. For more information, see
the Scripting Reference topics in the Director Help Panel.
Opening a MIAW
Before you can play a movie in a separate window, you must first open the window explicitly. The
window must have already been declared.
410
Chapter 18: Movies in a Window
method. This approach
open window
with the window:
"my_Movie"
"window title"
property of the movie that is being
rect
.

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the DIRECTOR MX 2004-USING DIRECTOR and is the answer not in the manual?

Questions and answers

This manual is also suitable for:

Director mx 2004

Table of Contents