
Sound.getTransform() Method
This is the Title of the Book, eMatter Edition
Copyright © 2007 O’Reilly & Associates, Inc. All rights reserved.
Alphabetical Language Reference
|
777
For Sound objects, getBytesTotal() is used together with getBytesLoaded() to determine
(and display, normally) the load progress of a downloading sound file. See getBytesLoaded(
) for details and example code.
See Also
Sound.getBytesLoaded(), Sound.onLoad()
Sound.getPan() Method
retrieve the last pan value set
Flash 5
soundObject.getPan()
Returns
A number indicating the last value set by setPan(). Usually in the range of –100 (left
channel on, right channel off) to 100 (right channel on, left channel off). Default value is 0
(left and right channels in equal proportions).
Description
By adjusting the pan of a sound, you can create the illusion of a moving sound source. The
getPan() method is used to determine the current distribution of the left and right channels
of the sounds controlled by
soundObject. Normally, getPan() is used in combination with
setPan() to adjust the current pan of a sound.
Example
Here we alter the pan of a sound by 20 towards the left channel:
mySound = new Sound();
mySound.setPan(mySound.getPan() - 20);
See Also
Sound.getTransform(), Sound.setPan()
Sound.getTransform() Method
determine the current distribution of the channels of a sound to the left and right speakers
Flash 5
soundObject.getTransform()
Returns ...