•
When used with one argument,
memory the cast members in that frame.
•
When used with two arguments,
unLoadMember()
range of cast members by frame numbers or frame labels.
Parameters
Optional. A reference to the cast member to unload from memory.
memberObjRef
fromMemberNameOrNum
specifies the name or number of the first cast member in a range to unload from memory.
toMemberNameOrNum
specifies the name or number of the last cast member in a range to unload from memory.
Example
This statement clears from memory the cast member Screen1:
-- Lingo syntax
_movie.unLoadMember(member("Screen1"))
// JavaScript syntax
_movie.unLoadMember(member("Screen1));
This statement clears from memory all cast members from cast member 1 to cast member Big
Movie:
-- Lingo syntax
_movie.unLoadMember(member(1), member("Big Movie"))
// JavaScript syntax
_movie.unLoadMember(member(1), member("Big Movie"));
See also
Movie
unLoadMovie()
Usage
-- Lingo syntax
_movie.unLoadMovie(stringMovieName)
// JavaScript syntax
_movie.unLoadMovie(stringMovieName);
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 isn't already in RAM, the result is -1.
572
Chapter 12: Methods
memberObjRef
fromMemberNameOrNum
method unloads all cast members in the range specified. You can specify a
Required if clearing a range of cast members. A string or integer that
Required if clearing a range of cast members. A string or integer that
, the
unLoadMember()
and
toMemberNameOrNum
method clears from
, the
Need help?
Do you have a question about the DIRECTOR MX 2004-DIRECTOR SCRIPTING and is the answer not in the manual?
Questions and answers