MACROMEDIA DIRECTOR MX 2004-USING DIRECTOR Use Manual page 411

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

Advertisement

To open a MIAW:
Use the following script:
-- Lingo
window().new("movieName")
window("movieName").open()
-or-
window().new("movieName").open()
// JavaScript syntax
new window("movieName");
window("movieName").open();
-or-
new window("movieName").open();
Unless you explicitly preload the movie through scripting, Director doesn't load the movie into
memory until the window is opened, which can cause a noticeable pause. To load the first frame
of the movie, use the
You can specify other window characteristics before or after you open the window and by using
the Display Template at authoring time. For more information, see
properties" on page
Closing a MIAW
You can close the window for a MIAW but leave the movie in memory, or you can close the
MIAW and remove the movie from memory when it's no longer in use.
If you leave a MIAW in memory, you get better performance if the window is reopened;
however, the movie still consumes memory. You might want to use this option if you expect
a MIAW to be reopened after it initially runs, or if other windows or global variables refer to
the MIAW.
If you remove a MIAW from memory, performance slows down if the window is reopened
because the movie has to reload; however, it doesn't consume memory until the movie is
reloaded. You might want to use this option if you don't expect a MIAW to be reopened after it
initially runs or if you want to optimize memory on the computer running the MIAW.
To close a MIAW but keep it in memory:
Use the
close()
movie continues playing. (You can also still access it in the
window("window name").close()
To close a MIAW and remove it from memory:
Use the
forget()
Use this method only if no other window or global variables still refer to the MIAW. When you
remove a MIAW from memory, it is no longer available in the windowList. For example,
window("window name").forget()
Scripting Reference topics in the Director Help Panel.
method.
preLoadMovie
413.
method. After the window is closed, the window becomes invisible, but the
.
method. The window is closed, and the movie is removed from memory.
. For more information about this method, see the
"Window appearance
.) For example,
windowList
Opening and closing a MIAW
411

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

Subscribe to Our Youtube Channel

This manual is also suitable for:

Director mx 2004

Table of Contents