-- Lingo syntax _movie.unLoadMovie(stringMovieName) // JavaScript syntax _movie.unLoadMovie(stringMovieName);
Movie method; removes the specified preloaded movie from memory.
This command is useful in forcing movies to unload when memory is low.
You can use a URL as the file reference.
If the movie isn't already in RAM, the result is -1.
stringMovieName Required. A string that specifies the name of the movie to unload from memory.
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");
Send me an e-mail when comments are added to this page | Comment Report
Current page: http://livedocs.adobe.com/director/mx2004/release_update_en/07_me455.htm