Duplicate movieclip according to xml nodes

hi,
i’ve posted a similar thread before, but i’ve come up with something but now i’m stuck again, and I really really need to get thru with this…

i have an xml file built like this:

<?xml version="1.0" encoding="iso-8859-1"?>
<list>
 <pic url="contenuti/realizzazioni/thumbnails/1.jpg" caption="GIANBATTISTA TIEPOLO"/>
 <pic url="contenuti/realizzazioni/thumbnails/2.jpg" caption="GIANBATTISTA TIEPOLO2"/>
 <pic url="contenuti/realizzazioni/thumbnails/3.jpg" caption="GIANBATTISTA TIEPOLO3"/>
</list>

Then flash loads the xml…
What I need to do is have the button movieclip be duplicated accordingly to the xml file (in this case there should be 3 buttons).

AS so far looks like this:

stop();
pic_mc._visible = false;
//////////////////
var x:XML = new XML();
x.ignoreWhite = true;
var urls:Array = new Array();
var captions:Array = new Array();
var whoIsOn:Number;
x.onLoad = function() {
 var photos:Array = this.firstChild.childNodes;
 for (i=0; i<photos.length; i++) {
  urls.push(photos*.attributes.url);
  captions.push(photos*.attributes.caption);
 }
 pic_mc.thumbnail.loadMovie(urls[0]);
 pic_mc.caption.text = captions[0];
};
x.load("xml/photo.xml");
pic_mc.onRelease = function() {
 details_mc.play();
};

but i don’t know how to duplicate the mc…
any help would be deeply appreciated, i’m attaching the fla in case you needed it, you can work on that if you like.

please please please!!!