3 Replies Latest reply on Sep 25, 2006 2:22 PM by philoman

    Load random mp3

      Flash 8 behavior has an option to play mp3 stream.
      Does anyone know how to make the mp3 play randomly from 2 or more mp3 files?

      I wish that the behavior had that option included.

        • 1. Load random mp3
          derobinson Level 1
          You'll need to basically script it yourself...or adapt the Behavior script. Create and array with your file names. Use the random number function to get a random index for your array and use that to call the MP3 in the behavior. So something like this:
          • 2. Re: Load random mp3
            philoman Level 1

            Thank you for your kind reply and taking the trouble to help.
            I will try your suggestion.
            I have very little knowledge in AS.

            • 3. Re: Load random mp3
              philoman Level 1

              I want to thank you again for your help.

              Your code was complete and very easy to copy and past and modify minimal info to get it working right away.
              I'm sure you knew that.

              Thank you and I'm grateful for your willingness to help and sharing your knowledge.

              Thank you very much,