User Guide
466 Chapter 12: Methods
Example
This statement reports in the Message window whether the QuickTime movie Rotating Chair can
be preloaded into memory:
-- Lingo syntax
put(member("Rotating Chair").preload())
// JavaScript syntax
put(member("Rotating Chair").preload());
This startMovie handler sets up a Flash movie cast member for streaming and then sets its
bufferSize property:
-- Lingo syntax
on startMovie
member("Flash Demo").preload = FALSE
member("Flash Demo").bufferSize = 65536
end
// JavaScript syntax
function startMovie() {
member("Flash Demo").preload = false;
member("Flash Demo").bufferSize = 65536;
}
See also
Member
preLoad() (Movie)
Usage
-- Lingo syntax
_movie.preLoad({frameNameOrNum})
_movie.preLoad(fromFrameNameOrNum, toFrameNameOrNum)
// JavaScript syntax
_movie.preLoad({frameNameorNum});
_movie.preLoad(fromFrameNameOrNum, toFrameNameOrNum);
Description
Movie method; preloads cast members in the specified frame or range of frames into memory
and stops when memory is full or when all of the specified cast members have been preloaded,
as follows:
• When used without arguments, this method preloads all cast members used from the current
frame to the last frame of a movie.
• When used with one argument, frameNameOrNum, this method preloads all cast members used
in the range of frames from the current frame to the frame frameNameOrNum, as specified by
the frame number or label name.
• When used with two arguments, fromFrameNameOrNum and toFrameNameOrNum, preloads all
cast members used in the range of frames from the frame fromFrameNameOrNum to the frame
toFrameNameOrNum, as specified by the frame number or label name.
The
preLoad() method also returns the number of the last frame successfully loaded. To obtain
this value, use the
result() method.