# Load multiple xml files?

**URL:** <https://forum.kirupa.com/t/load-multiple-xml-files/31193>\
**Category:** Uncategorized\
**Created:** [September 19, 2003, 11:19am UTC](https://forum.kirupa.com/t/load-multiple-xml-files/31193 "2003-09-19T11:19:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Inflicted](https://avatars.discourse-cdn.com/v4/letter/i/82dd89/32.png) [@Inflicted](https://forum.kirupa.com/u/Inflicted)\
**Post date:** [September 19, 2003, 11:19am UTC](https://forum.kirupa.com/t/load-multiple-xml-files/31193/1 "2003-09-19T11:19:00Z")

</div>

In my movie is a slideshow with pictures. On opening it loads xml txt. What I want is when you click to the next picture, another txt file opens. How can I do that? Here’s the example: [http://www.tantesteef.nl/trein.html](http://www.tantesteef.nl/trein.html)

Here’s the code:  
var xmlText = new XML();  
xmlText.tf = textBox;  
xmlText.onData = function(data) {  
this.tf.html = true;  
this.tf.htmlText = data;  
};  
xmlText.load(“trein.txt”);  
next.onPress = function() {  
if (myPic\<7 && !fadein && !fadeout) {  
fadeOut = true;  
myPic++;  
input = myPic;  
}  
};  
back.onPress = function() {  
if (myPic\>1 && !fadein && !fadeout) {  
fadeOut = true;  
myPic–;  
input = myPic;  
}  
};  
container.\_alpha = 0;  
myPic = 1;  
// initiate change to new image when buttons are clicked  
this.onEnterFrame = function() {  
// when a new Photo is selected, fade out, load new image, and fade in  
if (container.\_alpha\>10 && fadeout) {  
container.\_alpha -= 100;  
}  
if (container.\_alpha\<10) {  
loadMovie(“images/trein/trein”+myPic+".jpg", “container”);  
fadeOut = false;  
fadeIn = true;  
}  
if (container.\_alpha\<100 && fadein && !fadeout) {  
container.\_alpha += 10;  
} else {  
fadeIn = false;  
}  
};

regards
