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

Lesson 9. Using the Sound Object > Making the Slider Control the Volume

Making the Slider Control the Volume

Now that the sound is attached and started, you need to control the volume. In this section, you turn the slider into a control. To control the attached sound, you need to use another method of the Sound object, setVolume, as follows:

mySound.setVolume(volume); 


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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