1 Reply Latest reply on Jul 30, 2008 6:42 AM by robdillon

    Audio

    MontielMedia
      Hi, I'm new to scripting & wanted to know if I can please get some help with a audio script I downloaded. It loads & plays the mp3 fine, but I would like to loop the audio that loads. Can you please help me out, let me know what script I would have to add & where?

      Thanks,
      David
        • 1. Re: Audio
          robdillon Most Valuable Participant
          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);