
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.
Содержание DIRECTOR MX 2004-DIRECTOR SCRIPTING
Страница 1: ...DIRECTOR MX 2004 Director Scripting Reference...
Страница 48: ...48 Chapter 2 Director Scripting Essentials...
Страница 100: ...100 Chapter 4 Debugging Scripts in Director...
Страница 118: ...118 Chapter 5 Director Core Objects...
Страница 594: ...594 Chapter 12 Methods...
Страница 684: ...684 Chapter 14 Properties See also DVD...
Страница 702: ...702 Chapter 14 Properties See also face vertices vertices flat...
Страница 856: ...856 Chapter 14 Properties JavaScript syntax sprite 15 member member 3 4...
Страница 889: ...netPresent 889 _player alert Sorry the Network Support Xtras could not be found See also Player...
Страница 1102: ...1102 Chapter 14 Properties...