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