Xml entries

Hi all,

I’ve seem to have stumbled upon a little problem posting here using Firefox so if this is a double entry or flood; a 1000 excuses :crazy:

Okay, i have a flash file and a external xml file. The flash file contains only 3 dynamic textfields which holds the contents of the xml file; so far so good.
But now I want the script to be able to jump to the second xml entry.
In other words; when the .swf loads, entry 1 appears. After a couple of seconds entry 2 appaers.

Here is my xml so far.

<?xml version="1.0"?>
<content>
    <item>
        <land> dit is land 1 </land>
        <plaats> dit is plaats 1 </plaats>
  <gebied> dit is gebied 1 </gebied>
        <prijs> dit is prijs 1 </prijs>
    </item>
    <item>
        <land> dit is land 2 </land>
        <plaats> dit is plaats 2 </plaats>
  <gebied> dit is gebied 2 </gebied>
        <prijs> dit is prijs 2 </prijs>
    </item>
</content>

Here is my actionscript so far.

function loadXMLData(loaded) {
if (loaded) {
_root.land = this.firstChild.childNodes[0].childNodes[0].firstChild.nodeValue;
_root.plaats = this.firstChild.childNodes[0].childNodes[1].firstChild.nodeValue;
_root.gebied = this.firstChild.childNodes[0].childNodes[2].firstChild.nodeValue;
_root.prijs = this.firstChild.childNodes[0].childNodes[3].firstChild.nodeValue;
txt_land.text = _root.land;
txt_plaats.text = _root.plaats;
txt_gebied.text = _root.gebied;
txt_prijs.text = _root.prijs;
}
else {
trace("Could not load XML file");
}
}
xmlFile = new XML();
xmlFile.ignoreWhite = true;
xmlFile.onLoad = loadXMLData;
xmlFile.load("content2.xml");
curID = 0;
function nextEntry() {
 _root.land.setSelectedIndex(curID);
 trace("Show " + item[curID].Name + " xml entry");
 loadMovie(item[curID].item, _root.land);
 curID++;
 if(curID > item.getLength()){
  curID = 0;
 }
}
xmlInterval = setInterval(nextEntry, 3000);

Anyone here who could put me on the right track?