Description
Flash cast member property; controls the way a linked Flash movie cast member is streamed into
memory, as follows:
•
default
#frame (
while the sprite is on the Stage.
•
—Streams part of the cast member each time an idle event is generated or at least once
#idle
per Director frame while the sprite is on the Stage.
•
—Streams part of the cast member into memory only when the
#manual
issued for that cast member.
This property can be tested and set.
Example
This
startMovie
properties to
streamMode
-- Lingo syntax
on startMovie
repeat with i = 1 to castLib(1).member.count
if member(i, 1).type = #flash then
member(i, 1).streamMode = #manual
end if
end repeat
end
// JavaScript syntax
function startMovie() {
i = 1;
while( i < (castLib(whichCast).member.count) + 1)
var tp = member(i, whichCast).type;
if (tp = "flash") {
member(i, 1).streamMode = symbol("manual");
i++;
}
}
}
streamName
Usage
-- Lingo syntax
memberObjRef.streamName
// JavaScript syntax
memberObjRef.streamName;
Description
Shockwave Audio (SWA) cast member property; specifies a URL or filename for a streaming cast
member. This property functions the same as the
This property can be tested and set.
1018
Chapter 14: Properties
—Streams part of the cast member each time the Director frame advances
)
script searches the internal cast for Flash movie cast members and sets their
:
#manual
member property.
URL
command is
stream
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