Director Help

fadeIn()

Usage

-- Lingo syntax
soundChannelObjRef.fadeIn({intMilliseconds})

// JavaScript syntax
soundChannelObjRef.fadeIn({intMilliseconds});

Description

Sound Channel method; immediately sets the volume of a sound channel to zero and then brings it back to the current volume 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 increased back to its original value. The default is 1000 milliseconds (1 second) if no value is given.

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)