User Guide

closeFile() 267
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) method. This allows rapid access to windows that you want to
keep available.
If you want to completely dispose of a window and clear it from memory, use the
forget()
method. Make sure that nothing refers to the movie in that window if you use the
forget()
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 movies 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 windowList:
-- Lingo syntax
window(5).close()
// JavaScript syntax
window(5).close();
See also
forget() (Window), open() (Window), Window
closeFile()
Usage
-- Lingo syntax
fileioObjRef.closeFile()
// JavaScript syntax
fileioObjRef.closeFile();
Description
Fileio method; Closes a file.
Parameters
None.
See also
Fileio