paragraph
911
The range of values is from -100 to 100. -100 indicates only the left channel is heard. 100
indicate only the right channel is being heard. A value of 0 indicates even left/right balance,
causing the sound source to appear to be centered. For mono sounds,
pan
affects which speaker
(left or right) the sound plays through.
You can change the pan of a sound object at any time, but if the sound channel is currently
performing a fade, the new pan setting doesn’t take effect until the fade is complete.
To see an example of
pan
used in a completed movie, see the Sound Control movie in the
Learning/Lingo Examples folder inside the Director application folder.
Example
These statements pan the sound in sound channel 2 from the left channel to the right channel:
-- Lingo syntax
repeat with x = -100 to 100
sound(2).pan = x
end repeat
// JavaScript syntax
for (var x = -100; x <= 100; x++) {
sound(2).pan = x;
}
See also
Sound Channel
pan (QTVR property)
Usage
-- Lingo syntax
spriteObjRef
.pan
// JavaScript syntax
spriteObjRef
.pan;
Description
QuickTime VR sprite property; the current pan of the QuickTime VR movie. The value is
in degrees.
This property can be tested and set.
paragraph
Usage
chunkExpression
.paragraph[
whichParagraph
]
chunkExpression
.paragraph[
firstParagraph..lastParagraph
]
Description
Text cast member property; this chunk expression allows access to different paragraphs within a
text cast member.
The paragraph is delimited by a carriage return.
put member("AnimText").paragraph[3]
Содержание DIRECTOR MX 2004-DIRECTOR SCRIPTING
Страница 1: ...DIRECTOR MX 2004 Director Scripting Reference...
Страница 48: ...48 Chapter 2 Director Scripting Essentials...
Страница 100: ...100 Chapter 4 Debugging Scripts in Director...
Страница 118: ...118 Chapter 5 Director Core Objects...
Страница 594: ...594 Chapter 12 Methods...
Страница 684: ...684 Chapter 14 Properties See also DVD...
Страница 702: ...702 Chapter 14 Properties See also face vertices vertices flat...
Страница 856: ...856 Chapter 14 Properties JavaScript syntax sprite 15 member member 3 4...
Страница 889: ...netPresent 889 _player alert Sorry the Network Support Xtras could not be found See also Player...
Страница 1102: ...1102 Chapter 14 Properties...