• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 8. Controlling Sound > Transforming Sounds

Transforming Sounds

For advanced users who want more precise control over how a sound is playing through the left and right speakers, Flash provides the method setTransform. This method allows you to set percentages that determine how much of the right or left channel plays through the right and left speakers. Using this method, your sound can dynamically switch speakers from left to right or switch from stereo to mono.

The setTransform method of the Sound object is very similar to the setTransform method of the Color object discussed in Chapter 7. As with the Color object, using setTransform with the Sound object requires that you create a generic object to hold the information specifying the distribution of left and right sounds. The parameters for the sound transformation object are ll, lr, rr, and rl (Figure 8.21). A summary of their functions appears in Table 8.1.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint