Xml Update function help needed

Hello everybody,

I am new at this site and I am from the Netherlands so if I don’t speak your language very well, excuse me for that.

Now I have a problem that I can’t fix. So I’ll explain it to you.

I have this kind of xml update function so that an xml file is automatically updated at a website instead of the user have to push the refresh button.

This part works fine and the xml really gets up te date everytime the animation is het number 1.

Another story is the animation itself. After a while playing the entire animation, it will “forgets” the order of the xml file and it will play soms of the items for the half and some don’t show at all.

Can you please help me cause I have done everything I can do. Here is my actionscript code:

//speed is de snelheid van de beweging; Hoe kleiner hoe sneller.
var speed = 4;
//
var xmlFile = "http://www.informatiescherm.com/SWF/test.xml";
var xmlData = new XML();
xmlData.ignoreWhite = true;
xmlData.onLoad = loadXML;
xmlData.load(xmlFile+"?"+new Date().getTime());
//
resetXML = function(xmlData){
 var xmlData = new XML();
 xmlData.ignoreWhite = true;
 xmlData.onLoad = loadXML;
 xmlData.load(xmlFile+"?"+new Date().getTime());
}
//
function loadXML(loaded) {
 if (loaded) {
  xmlNode = this.firstChild;
  caption = [];
  url = [];
  total = xmlNode.childNodes.length;
  for (i=0; i<total; i++) {
   caption* = xmlNode.childNodes*.childNodes[0].firstChild.nodeValue;
   url* = xmlNode.childNodes*.childNodes[1].firstChild.nodeValue;
  }
  first_item();
 } else {
  content = "XML Bestand niet geladen!";
 }
}
//
function first_item() {
 delay = 3000; // Tijd voordat een nieuwe regel wordt geladen.
 p = 0;
 display(p);
 p++;
}
function timer() {
 myInterval = setInterval(ticker, delay);
 function ticker() {
  clearInterval(myInterval);
  if (p == total) {
   p = 0;
   resetXML(xmlData);
  }
  verkleinen();
 }
}
function display(pos) {
 over = new TextFormat();  //Effecten voor mouse-over
 over.underline = true;
 //
 out = new TextFormat();  // Effecten voor mouse-out
 out.underline = false;
 //
 newsMC.newsText.text = caption[pos];
 newsMC.onRelease = function() {
  getURL(url[pos], "_blank");
 };
 newsMC.onRollOver = function() {
  this.newsText.setTextFormat(over);
 };
 newsMC.onRollOut = function() {
  this.newsText.setTextFormat(out);
 };
 timer();
}
function verkleinen() {
 this.onEnterFrame = function() {
  if(newsMC._height <= 22 and newsMC._height > 0){
   newsMC._yscale += (0 - newsMC._yscale) / speed
  }
  else if(newsMC._height == 0){
   vergroten();
   display(p);
   p++;
  }
 };
}
function vergroten() {
 this.onEnterFrame = function() {
   newsMC._yscale += (100 - newsMC._yscale) / speed
 };
}