Help with audio please.

  • Rizz
  • Born
  • Born
  • Rizz
  • Posts: 3

Post 3+ Months Ago

Hi

This is the code I am using to stream an audio file that loops continuously. It works great!
However I would like it to randomly or play in succession three tunes and not just one mp3.

Is it possible to add some code to this to allow the play back of three mp3s? If it is could someone tell me what code I would need to add and where to add it. Thanks for your help.

Code: [ Select ]
var my_sound = new Sound();
my_sound.onLoad = function() {
if (success) {
this.start();
}
};
my_sound.onSoundComplete = function() {
this.start();
};
my_sound.loadSound("one.mp3",true);
  1. var my_sound = new Sound();
  2. my_sound.onLoad = function() {
  3. if (success) {
  4. this.start();
  5. }
  6. };
  7. my_sound.onSoundComplete = function() {
  8. this.start();
  9. };
  10. my_sound.loadSound("one.mp3",true);
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • IceCold
  • Guru
  • Guru
  • User avatar
  • Posts: 1254
  • Loc: Ro

Post 3+ Months Ago

same thing, 3 different variables for Sound, and read more about the Sound class in the help, maybe a bell will ring.

Post Information

  • Total Posts in this topic: 2 posts
  • Users browsing this forum: No registered users and 11 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.