Parameters
frameNameOrNum
specifies the number of the specific frame to preload.
fromFrameNameOrNum
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
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
cast member is stopped.
When the
preLoadBuffer
Most SWA cast member properties can be tested only after the
completed successfully. These properties include:
,
currentTime
duration
and
numChannels
Parameters
None.
Optional. A string that specifies the specific frame to preload, or an integer that
Required if preloading a range of frames. A string that specifies the name
Required if preloading a range of frames. A string that specifies the name of
preLoadTime
command succeeds, the
,
percentPlayed
.
property. This command works only if the SWA
member property equals 2.
state
preLoadBuffer
cuePointNames
,
,
percentStreamed
bitRate
command has
,
,
cuePointTimes
,
,
sampleRate
preLoadBuffer()
467
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