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
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...