fileName()
311
fadeTo()
Usage
-- Lingo syntax
soundChannelObjRef
.fadeTo(
intVolume
{
, intMilliseconds
})
// JavaScript syntax
soundChannelObjRef
.fadeTo(
intVolume
{
, intMilliseconds
});
Description
Sound Channel method; gradually changes the
volume
of a sound channel to a specified volume
over a given number of milliseconds.
The current pan setting is retained for the entire fade.
To see an example of
fadeTo()
used in a completed movie, see the Sound Control movie in the
Learning/Lingo folder inside the Director application folder.
Parameters
intVolume
Required. An integer that specifies the volume level to change to. The range of values
for
intVolume
volume is 0 to 255.
intMilliseconds
Optional. An integer that specifies the number of milliseconds over which the
volume is changed to
intVolume
. The default value is 1000 milliseconds (1 second) if no value
is given.
Example
The following statement changes the volume of sound channel 4 to 150 over a period of 2
seconds. It can be a fade up or a fade down, depending on the original volume of sound channel 4
when the fade begins.
-- Lingo syntax
sound(4).fadeTo(150, 2000)
// JavaScript syntax
sound(4).fadeTo(150, 2000);
See also
fadeIn()
,
fadeOut()
,
pan
,
Sound Channel
,
volume (Windows Media)
fileName()
Usage
-- Lingo syntax
fileioObjRef
.fileName()
// JavaScript syntax
fileioObjRef
.fileName();
Description
Fileio method; Returns the full path and name of an open file.
You must first open a file by calling
openFile()
before using
fileName()
to return the
file’s name.
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...