-- Lingo syntaxmemberObjRef.mediaReady // JavaScript syntaxmemberObjRef.mediaReady;
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.
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;
}