Lingo Dictionary > L-N > mediaReady

 

mediaReady

Syntax

member(whichCastMember).mediaReady
the mediaReady of member whichCastMember
sprite(whichSpriteNumber).mediaReady
the mediaReady of sprite whichSpriteNumber

Description

Cast member or sprite property; determines whether the contents of the sprite, the specified cast member, or a movie or cast file, or linked cast member is downloaded from the Internet and is available on the local disk (TRUE) or is not available (FALSE).

This property is useful only when streaming a movie or cast file. Movie streaming is activated by setting the Movie:Playback properties in the Modify menu to Play While Downloading Movie (default setting).

When using this property to query whether the media of an internal cast member that resides in an externally linked cast is available on disk, the entire linked cast will be downloaded as a result.

For a demonstration of the mediaReady member function, see the sample movie "Streaming Shockwave" in Director Help.

This property can be tested but not set.

Example

This statement changes cast members when the desired cast member is downloaded and available locally:

if member("background").mediaReady = TRUE then
	 sprite(2).memberNum = 10
	-- 10 is the number of cast member "background"
end if

See also

frameReady()