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.
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...