Здравствуйте.
Подскажите как мне вывести фото с именами foto1 и foto2 в фрагмент ролика с именем thumbnails из XML файла, сейчас выводится только foto1.
Смысл сего вывод двух маленьких фото в окне предпросмотра, а при нажатии на одну из них она открывается из папки images только уже увеличенная.
вот парсер XML:

Код AS1/AS2:
myPhoto = new XML();
myPhoto.ignoreWhite = true;
myPhoto.onLoad = function(success) {
//portfolioTag = this.firstChild.childNodes[i].childNodes[0].childNodes[0];
numimages = this.firstChild.childNodes.length;
spacing = 100;
for (i=0; i<numimages; i++) {
this.picHolder = this.firstChild.childNodes[i].childNodes[0].childNodes[0];
this.thumbHolder = thumbnails.createEmptyMovieClip("thumbnail",i);
//this.thumbHolder._x = i*spacing;
this.thumbLoader = this.thumbHolder.createEmptyMovieClip("thumbnail_image", 0);
this.thumbLoader.loadMovie(this.picHolder.attributes.thmb);
trace(this.picHolder.attributes.thmb);
this.thumbHolder.title = this.picHolder.attributes.title;
this.thumbHolder.main = this.picHolder.attributes.main;
this.thumbHolder.onRelease = function() {
loader.loadMovie(this.main);
title_txt.text = this.title;
//trace(this.title);
};
}
};
myPhoto.load("image.xml");
Вот XML файл:

Код:
<image>
<picture_men>
<spring>
<image title="1" main="images/foto1.jpg" thmb="thumbnails/foto1.jpg"/>
<image title="2" main="images/foto2.jpg" thmb="thumbnails/foto2.jpg"/>
</spring>
<summer>
<image title="5" main="images/foto3.jpg" thmb="thumbnails/foto3.jpg"/>
<image title="6" main="images/foto4.jpg" thmb="thumbnails/foto4.jpg"/>
</summer>
</picture_men>
</image>
Могу приложить исходник.
Спасибо.