Playing multiple sound variables "dynamically"

I’m designing parts of a website for my friend. He is an artist and wants people to sample his music…and if they want, play all the songs at the same time (don’t ask :slight_smile: )

well, he said he will add more songs as time goes on so I’m trying to put every info in an XML document and dynamically put buttons which will load these songs.

My question is how would I load these songs dynamically such that if the user wants to play 3 songs a the same time, they can.

I was thinking of doing something like this:


xml.load("Songs.xml")
xml.onLoad = function() {
var nodes:Array = xml.firstChild.childNodes;
for(var i=0;i<nodes.length;i++)
{
    var t = attachMovie("activator","activBTN",i,{_x:2i,_y:13})
    {
         t.onRelease = function() {
         var s:Sound = new Sound;  // MY QUESTION IS HERE
         //and code for the song goes here
         }
    }
}

so yeh, how do I load multiple songs that can play at the same time, depending on the user’s request?