hi all, quick question for you;
just done the news ticker tutorial and everything is fine, except something which, for a mere beginner, is driving me nuts. pls bare with me.
in a section of the action script i have:
xmlData = new XML();
xmlData.ignoreWhite = true;
xmlData.onLoad = loadXML;
xmlData.load(“news.xml?blarg=”+new
Date().getTime());
its says there are no errors in the script, but when i test my movie it pops up and says;
Error opening URL “[file:///C|/fulci/flash/news.xml?blarg=1141136361085](file:///C|/fulci/flash/news.xml?blarg=1141136361085)”
so obviously im writing the xmlData.load wrong, but no matter what i try, nothing seems to fix it. i know this is simple, but me and actionscript just arent the best of friends. both the .fla and .xml file are in the same folder. iv posted the complete actionscript below just in case anyone can spot something iv missed.
can anyone help??
function loadXML(loaded) {
if (loaded) {
xmlNode = this.firstChild;
caption = [];
url = [];
total = xmlNode.childNodes.lengh;
for (i=0; i<total; i++) {
caption* = xmlNode.childNodes*.childNodes[0].firstChild.nodeValue;
url* = xmlNode.childNodes*.childNodes[1].firstChild.nodeVlaue;
}
first_item();
} else {
content = “file not loaded!”;
}
}
xmlData = new XML();
xmlData.ignoreWhite = true;
xmlData.onLoad = loadXML;
xmlData.load(“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;
}
fadout();
}
}
function display(pos) {
over = new TextFormat();
over.underline = true;
//
out = new TextFormat();
out.underline = false;
//
newsMC.newsText._alpha = 100;
newsMC.newText.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() {
if (newsMC.newsText._alpha>=0) {
newsMC.newsText._alpha -= 5;
} else {
display§;
p++;
delete this.onEnterframe;
}
}