Creating or declaring a MIAW
You must first explicitly create or declare the MIAW before you can use it or set its properties.
Explicitly declare a new MIAW in Lingo
•
Use the following script:
window().new ("window name")
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 is added to the player's window list.
Assigning a filename and title to a MIAW
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 it.
Use a movie's filename as the argument for the
Director to use the filename as the window title.
•
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
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.
•
Use the following script:
-- Lingo
window().new("movieName")
window("movieName").open()
-or-
method to assign that movie to a window and instruct
open window
" with the window:
"my_Movie
window title
property of the movie that is being opened in the
rect
ADOBE DIRECTOR 11.0
".
395
User Guide