How do you loop Loaded sounds?

2 posts

Flag Post

I’m using the code

sound1 = new Sound();
sound1.loadSound(“yak.mp3”, true);

to upload a sound how do i loop it?

Flag Post

Bimbofred, probably the most flexible way is to create a function that handles actions you want to take after your song/sound is completed. You can call this function from the onSoundComplete method. That way you can either make the function call the sound again or perform another action depending on other variables that may be present. If you want an example you can look at my ch00se_JukeBox code. Here is a <a href = “; >link to the forum post that can get you to it.

Let me know if you get it working or if you need any other help.