Sound
613
Example
For a sample usage of this property, see
Sound.duration
.
See also
duration (Sound.duration property)
setPan (Sound.setPan method)
public setPan(value:
Number
) : Void
Determines how the sound is played in the left and right channels (speakers). For mono
sounds,
pan
determines which speaker (left or right) the sound plays through.
Note:
Flash Lite 2.0 supports this method for native Flash sound only. The sound formats
that are specific to a host device are not supported.
Availability:
ActionScript 1.0; Flash Lite 2.0
Parameters
value
:
Number
- An integer specifying the left-right balance for a sound. The range of valid
values is -100 to 100, where -100 uses only the left channel, 100 uses only the right channel,
and 0 balances the sound evenly between the two channels.
Example
For a sample usage of this method, see
Sound.getPan()
.
See also
attachSound (Sound.attachSound method)
,
getPan (Sound.getPan method)
,
setTransform (Sound.setTransform method)
,
setVolume (Sound.setVolume
method)
,
start (Sound.start method)
setTransform (Sound.setTransform method)
public setTransform(transformObject:
Object
) : Void
Sets the sound transform (or balance) information, for a Sound object.
The
soundTransformObject
parameter is an object that you create using the constructor
method of the generic Object class with parameters specifying how the sound is distributed to
the left and right channels (speakers).
Содержание Flash Lite 2
Страница 1: ...Flash Lite 2 x ActionScript Language Reference...
Страница 22: ...22 Contents...
Страница 244: ...244 ActionScript language elements...
Страница 760: ...760 ActionScript classes...