User Guide
unregisterAllEvents 573
Parameters
stringMovieName
Required. A string that specifies the name of the movie to unload
from memory.
Example
This statement checks whether the largest contiguous block of free memory is less than 100K and
unloads the movie Parsifal if it is:
-- Lingo syntax
if (_system.freeBlock < (100*1024)) then
_movie.unLoadMovie("Parsifal")
end if
// JavaScript syntax
if (_system.freeBlock < (100*1024)) {
_movie.unLoadMovie("Parsifal");
}
This statement unloads the movie at http://www.cbDemille.com/SunsetBlvd.dir:
-- Lingo syntax
_movie.unLoadMovie("http://www.cbDemille.com/SunsetBlvd.dir")
// JavaScript syntax
_movie.unLoadMovie("http://www.cbDemille.com/SunsetBlvd.dir");
See also
Movie
unregisterAllEvents
Usage
-- Lingo syntax
member(whichMember).unregisterAllEvents()
// JavaScript syntax
member(whichMember).unregisterAllEvents();
Description
3D command; unregisters the referenced cast member for all event notifications. Therefore, all
handlers that were previously registered to respond to events using the registerForEvent
command will no longer be triggered when those events occur.
Parameters
None.
Example
This statement unregisters the cast member named Scene for all event notifications:
-- Lingo syntax
member("Scene").unregisterAllEvents()
// JavaScript syntax
member("Scene").unregisterAllEvents();
See also
registerForEvent()