User Guide

preLoadBuffer() 467
Parameters
frameNameOrNum
Optional. A string that specifies the specific frame to preload, or an integer that
specifies the number of the specific frame to preload.
fromFrameNameOrNum Required if preloading a range of frames. A string that specifies the name
of the label of the first frame in the range of frames to preload, or an integer that specifies the
number of the first frame in the range of frames to preload.
toFrameNameOrNum Required if preloading a range of frames. A string that specifies the name of
the label of the last frame in the range of frames to preload, or an integer that specifies the number
of the last frame in the range of frames to preload.
Example
This statement preloads the cast members used from the current frame to the frame that has the
next marker:
-- Lingo syntax
_movie.preLoad(_movie.marker(1))
// JavaScript syntax
_movie.preLoad(_movie.marker(1));
This statement preloads the cast members used from frame 10 to frame 50:
-- Lingo syntax
_movie.preLoad(10, 50)
// JavaScript syntax
_movie.preLoad(10, 50);
See also
Movie, result
preLoadBuffer()
Usage
-- Lingo syntax
memberObjRef.preLoadBuffer()
// JavaScript syntax
memberObjRef.preLoadBuffer();
Description
Command; preloads part of a specified Shockwave Audio (SWA) file into memory. The amount
preloaded is determined by the
preLoadTime property. This command works only if the SWA
cast member is stopped.
When the
preLoadBuffer command succeeds, the state member property equals 2.
Most SWA cast member properties can be tested only after the
preLoadBuffer command has
completed successfully. These properties include:
cuePointNames, cuePointTimes,
currentTime, duration, percentPlayed, percentStreamed, bitRate, sampleRate,
and numChannels.
Parameters
None.