# Help with kirupa news ticker

**URL:** <https://forum.kirupa.com/t/help-with-kirupa-news-ticker/207625>\
**Category:** Uncategorized\
**Created:** [November 20, 2006, 3:40am UTC](https://forum.kirupa.com/t/help-with-kirupa-news-ticker/207625 "2006-11-20T03:40:58Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![AlexGM16](https://avatars.discourse-cdn.com/v4/letter/a/e8c25b/32.png) [@AlexGM16](https://forum.kirupa.com/u/AlexGM16)\
**Post date:** [November 20, 2006, 3:40am UTC](https://forum.kirupa.com/t/help-with-kirupa-news-ticker/207625/1 "2006-11-20T03:40:58Z")

</div>

I’m trying to load NBA scores using the ticker used in the tutorial.

All that displays is ‘undefined’ in my box where the scores should be popping up:

```auto
function loadXML(loaded) {

if (loaded) {

xmlNode = this.firstChild;
titles = [];
link = [];
total = xmlNode.childNodes.length;
for (i=0; i<total; i++) {

titles* = xmlNode.childNodes*.childNodes[0].firstChild.nodeValue;
link* = 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.nba.com/scores/rss.xml?blarg="+new Date().getTime());
//
function first_item() {

delay = 1000;
p = 0;
display(p);
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);
p++;
delete this.onEnterFrame;

}

};

}

```
