Sound Transforms


Although setVolume and setBalance seem to provide a lot of control over a sound, you can go even further. By creating sound transform objects, you can precisely control stereo sounds—which sound channel comes out of which speaker.

In a typical sound played in a typical way, the left channel’s sound comes out of the left speaker, and the right channel’s sound comes out of the right speaker.

However, you can change this by creating a sound transform object and applying it to the sound object with a setTransform command.

A sound transform object is actually just a plain variable object. But it needs to have four specific properties. Here is an example:

Taken From: Sams Teach Yourself Flash™ MX ActionScript in 24 Hours

  1. No comments yet.
(will not be published)
  1. No trackbacks yet.
  • Partner links