Lingo Dictionary > A-C > close window |
![]() ![]() ![]() |
close window
Syntax
window(
windowIdentifier
).close()
close window
windowIdentifier
Description
Window command; closes the window specified by windowIdentifier
.
![]() |
To specify a window by name, use the syntax |
![]() |
To specify a window by its number in |
Closing a window that is already closed has no effect.
Be aware that closing a window does not stop the movie in the window nor clear it from memory. This command simply closes the window in which the movie is playing. You can reopen it quickly by using the open window
command. 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 window
command. Make sure that nothing refers to the movie in that window if you use the forget window
command, or you will generate errors when scripts try to communicate or interact with the forgotten window.
Example
This statement closes the window named Panel, which is in the subfolder MIAW Sources within the current movie's folder:
window("@/MIAW Sources/Panel").close()
Example
This statement closes the window that is number 5 in windowList
:
window(5).close()
See also
forget window
, open window
, windowList
![]() ![]() ![]() |