I have two soundfiles that I want to loop after each other.
I think it´s best to use OnSoundComplete and I used it before. But in this case I want to loop between two different soundfiles and i can´t figure out how to do it.

This is how the code looks now.

s1=new Sound();
s1.attachSound("key1");
s1.start(0,10);
}
s1.onSoundComplete = function(){
s2=new Sound();
s2.attachSound("key2");
s2.start();
s2.onSoundComplete = function(){
s1.start(0,10);
}