MACROMEDIA DIRECTOR MX 2004-DIRECTOR SCRIPTING Reference page 311

Director scripting reference
Table of Contents

Advertisement

fadeTo()
Usage
-- Lingo syntax
soundChannelObjRef.fadeTo(intVolume {, intMilliseconds})
// JavaScript syntax
soundChannelObjRef.fadeTo(intVolume {, intMilliseconds});
Description
Sound Channel method; gradually changes the
over a given number of milliseconds.
The current pan setting is retained for the entire fade.
To see an example of
Learning/Lingo folder inside the Director application folder.
Parameters
Required. An integer that specifies the volume level to change to. The range of values
intVolume
for
volume is 0 to 255.
intVolume
intMilliseconds
volume is changed to
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,
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
file's name.
used in a completed movie, see the Sound Control movie in the
fadeTo()
Optional. An integer that specifies the number of milliseconds over which the
. The default value is 1000 milliseconds (1 second) if no value
intVolume
Sound
Channel,
openFile()
of a sound channel to a specified volume
volume
volume (Windows Media)
before using
fileName()
to return the
fileName()
311

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the DIRECTOR MX 2004-DIRECTOR SCRIPTING and is the answer not in the manual?

Questions and answers

This manual is also suitable for:

Director mx 2004

Table of Contents