Suppose you have 10 Movieclips corresponding to each artists,and on clicking them you play their song.
I suppose you are using only one sound object namely,
sndMusic1.
And you are loading dynamically the corresponding file of each artist.
That is,
Each movieclip has an info named artistSong or something that is the IDENTIFIER or PATH of that particular song.Just load it to the soundObject.
Since it is the same object,we can stop the previous song also.
So,Here is the code for first MovieClip.
mC1.onPress=function()
{
sndMusic1.stop();//Stopping the previous song.
sndMusic1.attachSound("mC1Song");//Identifier of that song.
sndMusic1.start(0,1);
}
Similarly for all movieclips...
Hope this helps..
Cheers
