User Guide

unLoadMember() 571
unLoad() (Movie)
Usage
-- Lingo syntax
_movie.unLoad({intFromFrameNum} {, intToFrameNum})
// JavaScript syntax
_movie.unLoad({intFromFrameNum} {, intToFrameNum});
Description
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 isnt already in RAM, the result is -1.
Parameters
intFromFrameNum
Optional. An integer that specifies the number of the first frame in a range to
unload from memory.
intToFrameNum Optional. An integer that specifies the number of the last frame in a range to
unload from memory.
Example
The following statements unload frames 10 through 25 from memory.
-- Lingo syntax
_movie.unLoad(10, 25)
// JavaScript syntax
_movie.unLoad(10, 25);
See also
Movie
unLoadMember()
Usage
-- Lingo syntax
_movie.unLoadMember({memberObjRef})
_movie.unLoadMember(fromMemberNameOrNum, toMemberNameOrNum)
// JavaScript syntax
_movie.unLoadMember({memberObjRef});
_movie.unLoadMember(fromMemberNameOrNum, toMemberNameOrNum);
Description
Movie method; forces Director to clear the cast members used in a specified frame from memory.
Director automatically unloads the least recently used cast members to accommodate preLoad()
methods or normal cast library loading.
When used without an argument, the unLoadMember() method clears from memory the cast
members in all the frames of a movie.