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

Controlling the Volume

So you have your sound attached and started. Now what? It’s time to start using some of the more exciting methods of the Sound object. As already mentioned, you can use ActionScript to control the volume and panning of a sound attached to a Sound object. Now, take a look at how you can control the volume of a sound.

The setVolume method of the Sound object enables you to set the volume of a sound attached to a Sound object. Imagine that—setVolume sets the volume! The syntax for the setVolume method is as follows:


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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