This is the part of the code that actually plays the sound:
// If the load was successful...
if (success) {
// ...use the new Sound. For example, if the loaded
// sound is an event sound, we can start it like this:
// this.start();
This.start(), can take two arguments, the delay in
milliseconds and the number of loops to play. So to get your sound
to loop 5 times, for instance, you would say:
this.start(0,5);