EasyManua.ls Logo

MACROMEDIA DIRECTOR MX 2004-DIRECTOR SCRIPTING - Page 319

MACROMEDIA DIRECTOR MX 2004-DIRECTOR SCRIPTING
1130 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
forget() (Timeout) 319
forget() (Window)
Usage
-- Lingo syntax
windowObjRef.forget()
// JavaScript syntax
windowObjRef.forget();
Description
Window method; instructs script to close a window and stop its playback when it’s no longer in
use and no other variables refer to it.
Calling
forget() on a window also removes that window’s reference from the windowList.
When the
forget() method is called, the window and the movie in a window (MIAW) disappear
without calling the
stopMovie, closeWindow, or deactivateWindow handlers.
If there are many global references to the movie in a window, the window doesn’t respond to the
forget() method.
Parameters
None.
Example
This statement instructs Lingo to delete the window Control Panel when the movie no longer
uses the window:
-- Lingo syntax
window("Control Panel").forget()
// JavaScript syntax
window("Control Panel").forget();
See also
close(), open() (Window), Window, windowList
forget() (Timeout)
Usage
timeout("timeoutName").forget()
forget(timeout("timeoutName"))
Description
This timeout object function removes a timeout object from the timeoutList, and prevents it
from sending further timeout events.
Parameters
None.