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 = “http://www.kongregate.com/forums/4/topics/523” >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.
Hey, do you like games? So do we — that’s what makes Kongregate the best source of free games online. We have thousands upon thousands of free online games, from both one-man indies and large studios, rated and filtered so you can play the best of the best. Read more »