duplicateMovieClip and onRelease

well, im trying to make an mp3 player for my server that i made on my computer. what i want is to make it to where i have different playlist for different artists. i am wanting for my flash thing to duplicate a mc that contains a textbox inside for every artist. once that artist is clicked on, i want it to perform an onRelease function that will load the songs of that playlist. i’m having problem with the onRelease thing. im unable to get it to assign an onRelease to the duplicated movieclips. here’s what i have so far:


playlist = new XML();
artist_mc._visible = false
playlist.ignoreWhite = true
source = "http://68.51.52.119/Mp3%20Player/playlist.xml"
playlist.load(source)
songs = new Array()
playlist.onLoad = function(success){
    if(success){
        artist = this.firstChild.childNodes
        artist_mc.artist_txt.text = "cool"
        for(i=0;i<artist.length;i++){
            songs.push({artists:artist*.attributes.name})
            artist_mc.duplicateMovieClip("artist"+i,i+100)
            eval("artist"+i)._x = i*150
            eval("artist"+i).artist_txt.text = artist*.attributes.name
            eval("artist"+i)._visible = true
            eval("artist"+i).onRelease = function(){
                trace(artist*.attributes.number)
            }
        }
    }
}

if i can get past this roadblock, ill be on my way. i hope someone can help. thanks.