MACROMEDIA DIRECTOR MX 2004-DIRECTOR SCRIPTING Reference page 267

Director scripting reference
Table of Contents

Advertisement

Be aware that closing a window does not stop the movie in the window nor clear it from memory.
This method simply closes the window in which the movie is playing. You can reopen it quickly
by using the
open() (Window)
keep available.
If you want to completely dispose of a window and clear it from memory, use the
method. Make sure that nothing refers to the movie in that window if you use the
method, or you will generate errors when scripts try to communicate or interact with the
forgotten window.
Parameters
None.
Example
This statement closes the window named Panel, which is in the subfolder MIAW Sources within
the current movie's folder:
-- Lingo syntax
window(_movie.path & "MIAW Sources\Panel").close()
// JavaScript syntax
window(_movie.path + "MIAW Sources\\Panel").close();
This statement closes the window that is number 5 in
-- Lingo syntax
window(5).close()
// JavaScript syntax
window(5).close();
See also
forget()
(Window),
closeFile()
Usage
-- Lingo syntax
fileioObjRef.closeFile()
// JavaScript syntax
fileioObjRef.closeFile();
Description
Fileio method; Closes a file.
Parameters
None.
See also
Fileio
method. This allows rapid access to windows that you want to
open()
(Window),
Window
:
windowList
forget()
forget()
closeFile()
267

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the DIRECTOR MX 2004-DIRECTOR SCRIPTING 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