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.