User Guide

fadeIn() 309
Example
This statement places the value of an external parameter in the variable myVariable:
-- Lingo syntax
if (_player.externalParamName("swURL") = "swURL") then
myVariable = _player.externalParamValue("swURL")
end if
// JavaScript syntax
if (_player.externalParamName("swURL") == "swURL") {
var myVariable = _player.externalParamValue("swURL");
}
See also
externalParamName(), Movie
extractAlpha()
Usage
imageObject.extractAlpha()
Description
This function copies the alpha channel from the given 32-bit image and returns it as a new image
object. The result is an 8-bit grayscale image representing the alpha channel.
This function is useful for down-sampling 32-bit images with alpha channels.
Example
This statement places the alpha channel of the image of member 1 into the variable mainAlpha:
mainAlpha = member(1).image.extractAlpha()
setAlpha(), useAlpha
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.