# Phot album using xml and different categories

**URL:** <https://forum.kirupa.com/t/phot-album-using-xml-and-different-categories/166585>\
**Category:** flash\
**Created:** [October 21, 2005, 2:08am UTC](https://forum.kirupa.com/t/phot-album-using-xml-and-different-categories/166585 "2005-10-21T02:08:15Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![nicnac](https://avatars.discourse-cdn.com/v4/letter/n/3ec8ea/32.png) [@nicnac](https://forum.kirupa.com/u/nicnac)\
**Post date:** [October 21, 2005, 2:08am UTC](https://forum.kirupa.com/t/phot-album-using-xml-and-different-categories/166585/1 "2005-10-21T02:08:15Z")

</div>

Want to make a photo album with different categories. Each categorie have for ex. 1-10 different kind of images that i want to display in the same image clip and controling by using a left and right arrow ??? How can i adjust clip\_mc.bild = daten.firstChild.attributes.bild; to read more than on image  
from each Node and put them into the detail\_clip and bild\_mc.loadMovie(bild)

fscommand(“allowScale”,false);  
my\_xml = new XML();  
my\_xml.ignoreWhite = true;  
my\_xml.load(“xml\_news.xml”);  
my\_xml.onLoad = function(status) {  
if (status) {  
news\_xml = my\_xml.firstChild.childNodes;  
delete my\_xml;  
initNavigation();  
setListe();  
}  
};

function setListe() {  
var j = 0;  
for (i=aktAnzeige; i\< maxAnzeige;i++) {  
nName = “newsclip” + j;  
attachMovie(“newsclip”, nName, j++);  
if (news\_xml\* != undefined) {  
this[nName].\_x = 24;  
this[nName].\_y = 54 + this[nName].\_height \* j \* 1.2;  
this[nName].nr\_txt.text = i + 1;  
this[nName].titel\_txt.text = news\_xml\*.attributes.titel;  
this[nName].datum\_txt.text = news\_xml\*.attributes.datum;  
this[nName].useHandCursor = false;  
this[nName].onRelease = function() {  
attachMovie(“detailclip”,“clip\_mc”,1000);  
clip\_mc.\_x = 360;  
clip\_mc.\_y = 94;  
daten = news\_xml[this.nr\_txt.text-1];  
clip\_mc.datum\_txt.text = daten.attributes.datum;  
clip\_mc.titel\_txt.text = daten.attributes.titel;  
clip\_mc.bild = daten.firstChild.attributes.bild;

```
            }

```

} else {  
this[nName].removeMovieClip();  
}

the detail\_clip have

bild\_mc.loadMovie(bild);
