310
Chapter 12: Methods
Example
This Lingo fades in sound channel 3 over a period of 3 seconds from the beginning of cast
member
introMusic2
:
-- Lingo syntax
sound(3).play(member("introMusic2"))
sound(3).fadeIn(3000)
// JavaScript syntax
sound(3).play(member("introMusic2"));
sound(3).fadeIn(3000);
See also
fadeOut()
,
fadeTo()
,
pan
,
Sound Channel
,
volume (Windows Media)
fadeOut()
Usage
-- Lingo syntax
soundChannelObjRef
.fadeOut({
intMilliseconds
})
// JavaScript syntax
soundChannelObjRef
.fadeOut({
intMilliseconds
});
Description
Sound Channel method; gradually reduces the
volume
of a sound channel to zero over a given
number of milliseconds.
The current pan setting is retained for the entire fade.
Parameters
intMilliseconds
Optional. An integer that specifies the number of milliseconds over which the
volume is reduced to zero. The default is 1000 milliseconds (1 second) if no value is given.
Example
This statement fades out sound channel 3 over a period of 5 seconds:
-- Lingo syntax
sound(3).fadeOut(5000)
// JavaScript syntax
sound(3).fadeOut(5000);
See also
fadeIn()
,
fadeTo()
,
pan
,
Sound Channel
,
volume (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...