# Urgent help required xml related and flash, simple to an expert :)

**URL:** https://forum.kirupa.com/t/urgent-help-required-xml-related-and-flash-simple-to-an-expert/171934
**Category:** Uncategorized
**Created:** [December 9, 2005, 12:52pm UTC](https://forum.kirupa.com/t/urgent-help-required-xml-related-and-flash-simple-to-an-expert/171934 "2005-12-09T12:52:41Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![trevorsaint](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/trevorsaint/32/268_2.png) [@trevorsaint](https://forum.kirupa.com/u/trevorsaint)
#### Post date: [December 9, 2005, 12:52pm UTC](https://forum.kirupa.com/t/urgent-help-required-xml-related-and-flash-simple-to-an-expert/171934/1 "2005-12-09T12:52:41Z")

</div>

Ahh can anyone help me out here, I need the xml to cycle through the nodes but not loop throught them once outputted, so when it has cycled through all the xml up until the end, I wish for the loop to stop.

Anyone know a quick solution?

[AS]  
function loadXML(loaded) {  
if (loaded) {

```
	xmlNode = this.firstChild;
	caption = [];
	total = xmlNode.childNodes.length;
	
	for (i=0; i&lt;total; i++) {
		caption* = xmlNode.childNodes*.childNodes[0].firstChild.nodeValue;
	}
	first_item();
} else {
	content = "file not loaded!";
}

```

}  
xmlData = new XML();  
xmlData.ignoreWhite = true;  
xmlData.onLoad = loadXML;  
xmlData.load(“greeting.xml”);  
//  
function first\_item() {  
delay = 5000;  
p = 0;  
display§;  
p++;  
}  
function timer() {  
myInterval = setInterval(ticker, delay);  
function ticker() {  
clearInterval(myInterval);  
if (p == total) {  
p = 0;  
}  
fadeout();  
}  
}  
function display(pos) {  
over = new TextFormat();  
over.underline = true;  
//  
out = new TextFormat();  
out.underline = false;  
//  
mc\_XML.greetingText.\_alpha = 100;  
mc\_XML.greetingText.text = caption[pos];

```
timer();

```

}  
function fadeout() {  
this.onEnterFrame = function() {  
if (mc\_XML.greetingText.\_alpha\>=0) {  
mc\_XML.greetingText.\_alpha -= 5;  
} else {  
display§;  
p++;  
delete this.onEnterFrame;  
}  
};  
}  
[/AS]
