Setpan (Sound.setpan Method); Settransform (Sound.settransform Method) - MACROMEDIA FLASH 8-FLASH LITE 2.X ACTIONSCRIPT LANGUAGE Reference

Flash lite 2.x actionscript language reference
Hide thumbs Also See for FLASH 8-FLASH LITE 2.X ACTIONSCRIPT LANGUAGE:
Table of Contents

Advertisement

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,
determines which speaker (left or right) the sound plays through.
pan
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
- An integer specifying the left-right balance for a sound. The range of valid
value:Number
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
parameter is an object that you create using the constructor
soundTransformObject
method of the generic Object class with parameters specifying how the sound is distributed to
the left and right channels (speakers).
Sound
613

Advertisement

Table of Contents
loading

Table of Contents