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

Playing Sounds

After you have created a new Sound object and attached a sound to it from the library, you can play that sound. Use the start() method to play a sound from your Sound object. The start() method takes two parameters: secondOffset and loops.

The secondOffset parameter is a number that determines how many seconds into the sound it should begin playing. You can set the sound to start from the beginning or at some later point. If you have a 20-second sound attached to your Sound object, for example, a secondOffset setting of 10 makes the sound play from the middle. It doesn’t delay the sound for 10 seconds, but begins immediately at the 10-second mark.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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