MACROMEDIA DIRECTOR MX 2004-DIRECTOR SCRIPTING Reference page 310

Director scripting reference
Table of Contents

Advertisement

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,
fadeOut()
Usage
-- Lingo syntax
soundChannelObjRef.fadeOut({intMilliseconds})
// JavaScript syntax
soundChannelObjRef.fadeOut({intMilliseconds});
Description
Sound Channel method; gradually reduces the
number of milliseconds.
The current pan setting is retained for the entire fade.
Parameters
intMilliseconds
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,
310
Chapter 12: Methods
:
Sound
Channel,
Optional. An integer that specifies the number of milliseconds over which the
Sound
Channel,
volume (Windows Media)
of a sound channel to zero over a given
volume
volume (Windows Media)

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

Subscribe to Our Youtube Channel

This manual is also suitable for:

Director mx 2004

Table of Contents