850
Chapter 14: Properties
Example
This statement copies the content of the cast member Sunrise into the cast member Dawn by
setting the
media
member property value for Dawn to the
media
member property value
for Sunrise:
-- Lingo syntax
member("Dawn").media = member("Sunrise").media
// JavaScript syntax
member("Dawn").media = member("Sunrise").media;
See also
Member
mediaReady
Usage
-- Lingo syntax
memberObjRef
.mediaReady
// JavaScript syntax
memberObjRef
.mediaReady;
Description
Member property; determines whether the contents of a cast member, a movie or cast library file,
or a linked cast member is downloaded from the Internet and is available on the local disk (
TRUE
)
or not (
FALSE
). Read-only.
This property is useful only when streaming a movie or cast library file. Movie streaming is
activated by setting the Movie:Playback properties in the Modify menu to Play While
Downloading Movie (default setting).
For a demonstration of the
mediaReady
property, see the sample movie Streaming Shockwave in
Director Help.
Example
This statement changes cast members when the desired cast member is downloaded and
available locally:
-- Lingo syntax
if member("background").mediaReady = TRUE then
sprite(2).member = member("background").number
end if
// JavaScript syntax
if (member("background").mediaReady == true) {
sprite(2).member = member("background").number;
}
See also
Member
Summary of Contents for DIRECTOR MX 2004-DIRECTOR SCRIPTING
Page 1: ...DIRECTOR MX 2004 Director Scripting Reference...
Page 48: ...48 Chapter 2 Director Scripting Essentials...
Page 100: ...100 Chapter 4 Debugging Scripts in Director...
Page 118: ...118 Chapter 5 Director Core Objects...
Page 594: ...594 Chapter 12 Methods...
Page 684: ...684 Chapter 14 Properties See also DVD...
Page 702: ...702 Chapter 14 Properties See also face vertices vertices flat...
Page 856: ...856 Chapter 14 Properties JavaScript syntax sprite 15 member member 3 4...
Page 1102: ...1102 Chapter 14 Properties...