497
preLoad (cast member property)
Syntax
member(
whichCastMember
).preLoad
the preLoad of member
whichCastMember
Description
Cast member property; determines whether the digital video cast member specified by
whichCastMember
can be preloaded into memory (
TRUE
) or not (
FALSE,
default). The
TRUE
status has the same effect as selecting Enable Preload in the Digital Video Cast Member
Properties dialog box.
For Flash movie cast members, this property controls whether a Flash movie must load entirely into
RAM before the first frame of a sprite is displayed (
TRUE
), or whether the movie can stream into
memory as it plays (
FALSE
, default). This property works only for linked Flash movies whose assets
are stored in an external file; it has no effect on members whose assets are stored in the cast. The
streamMode
and
bufferSize
properties determine how the cast member is streamed into memory.
This property can be tested and set.
Examples
This statement reports in the Message window whether the QuickTime movie Rotating Chair can
be preloaded into memory:
put member("Rotating Chair").preload
This
startMovie
handler sets up a Flash movie cast member for streaming and then sets its
bufferSize
property:
on startMovie
member("Flash Demo").preLoad = FALSE
member("Flash Demo").bufferSize = 65536
end
See also
bufferSize
,
streamMode
preLoadBuffer member
Syntax
member(
whichCastMember
).preLoadBuffer()
preLoadBuffer member
whichCastMember
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
.
Содержание DIRECTOR MX-LINGO DICTIONARY
Страница 1: ...Lingo Dictionary Macromedia Director MX...
Страница 756: ...Index 756...