User Guide
642 Chapter 14: Properties
Example
The following examples show that the audio properties for sprite 2 and the cast member Real is
set to
TRUE, which means that the audio portion of the RealMedia stream will be played.
-- Lingo syntax
put(sprite(2).audio) -- 1
put(member("Real").audio) -- 1
// JavaScript syntax
put(sprite(2).audio); // 1
put(member("Real").audio); // 1
The following Lingo sets the audio property for sprite 2 and the cast member Real to FALSE,
which means that the audio portion of the RealMedia stream will not be played when the movie
is played.
-- Lingo syntax
sprite(2).audio = FALSE
member("Real").audio = FALSE
// JavaScript syntax
sprite(2).audio = 0;
member("Real").audio = 0;
See also
soundChannel (RealMedia), video (RealMedia, Windows Media), sound (Player)
audio (Windows Media)
Usage
-- Lingo syntax
windowsMediaObjRef.audio
// JavaScript syntax
windowsMediaObjRef.audio;
Description
Windows Media property. Specifies whether audio is enabled (TRUE, default) or not (FALSE)
during playback. Read/write.
Example
This statement displays in the Message window whether audio is enabled for cast member 5:
-- Lingo syntax
trace(member(5).audio)
// JavaScript syntax
trace(member(5).audio);
See also
Windows Media