# Error opening URL 'file

**URL:** <https://forum.kirupa.com/t/error-opening-url-file/278018>\
**Category:** Uncategorized\
**Created:** [December 20, 2008, 7:52am UTC](https://forum.kirupa.com/t/error-opening-url-file/278018 "2008-12-20T07:52:30Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![svibuk](https://avatars.discourse-cdn.com/v4/letter/s/bc79bd/32.png) [@svibuk](https://forum.kirupa.com/u/svibuk)\
**Post date:** [December 20, 2008, 7:52am UTC](https://forum.kirupa.com/t/error-opening-url-file/278018/1 "2008-12-20T07:52:30Z")

</div>

i have the following script on the frame of a layer fr displaying data  
i have the xml file in c:\ and accordingly given the path  
still its showing error Error opening URL 'file:///c:/stext.xml

the script is as follows

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(“c:/stext.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;  
}  
};  
}

cananybody assist me
