# Problem retrieving external xml

**URL:** <https://forum.kirupa.com/t/problem-retrieving-external-xml/232743>\
**Category:** Uncategorized\
**Created:** [July 17, 2007, 1:15pm UTC](https://forum.kirupa.com/t/problem-retrieving-external-xml/232743 "2007-07-17T13:15:39Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![rascreek](https://avatars.discourse-cdn.com/v4/letter/r/4af34b/32.png) [@rascreek](https://forum.kirupa.com/u/rascreek)\
**Post date:** [July 17, 2007, 1:15pm UTC](https://forum.kirupa.com/t/problem-retrieving-external-xml/232743/1 "2007-07-17T13:15:39Z")

</div>

Hi there!  
I am trying to get the kirupa-newsticker run in flash 8. Somehow I can´t retrieve the xml file from another host. locally I can access the xml file without a problem but not remote. It just get the message:  
Error opening URL "[http://www.kirupa.com/developer/mx2004/swf/news.xml?blarg=1184678007093](http://www.kirupa.com/developer/mx2004/swf/news.xml?blarg=1184678007093)

Is there anyone who can help me with that?

Below the code from this tutorial again. I havent tried to get it running in Flash MX but I somehow think that would work. Could it be a problem that I use Flash8 with that code?

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 = “file not loaded!”;  
}  
}  
xmlData = new XML();  
xmlData.ignoreWhite = true;  
xmlData.onLoad = loadXML;  
xmlData.load(“[http://www.kirupa.com/developer/mx2004/swf/news.xml?blarg=](http://www.kirupa.com/developer/mx2004/swf/news.xml?blarg=)”+new Date().getTime());  
//  
function first\_item() {  
delay = 1000;  
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;  
//  
newsMC.newsText.\_alpha = 100;  
newsMC.newsText.text = caption[pos];  
newsMC.onRelease = function() {  
getURL(url[pos], “\_self”);  
};  
newsMC.onRollOver = function() {  
this.newsText.setTextFormat(over);  
};  
newsMC.onRollOut = function() {  
this.newsText.setTextFormat(out);  
};  
timer();  
}  
function fadeout() {  
this.onEnterFrame = function() {  
if (newsMC.newsText.\_alpha\>=0) {  
newsMC.newsText.\_alpha -= 5;  
} else {  
display§;  
p++;  
delete this.onEnterFrame;  
}  
};  
}

thanks in advance,

ras
