# NewsTicker(Kirupa Tut) - URL issue - CS3/AS2

**URL:** <https://forum.kirupa.com/t/newsticker-kirupa-tut-url-issue-cs3-as2/231100>\
**Category:** flash\
**Created:** [July 2, 2007, 7:21am UTC](https://forum.kirupa.com/t/newsticker-kirupa-tut-url-issue-cs3-as2/231100 "2007-07-02T07:21:31Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![chrizzle](https://avatars.discourse-cdn.com/v4/letter/c/edb3f5/32.png) [@chrizzle](https://forum.kirupa.com/u/chrizzle)\
**Post date:** [July 2, 2007, 7:21am UTC](https://forum.kirupa.com/t/newsticker-kirupa-tut-url-issue-cs3-as2/231100/1 "2007-07-02T07:21:31Z")

</div>

Thanks in advance to anyone who has time to address this !

I’m using the newsTicker - xml method from this tutorial: [http://www.kirupa.com/developer/mx2004/newsticker.htm](http://www.kirupa.com/developer/mx2004/newsticker.htm)

However, i do not want the text clickable at this time. I thought i could simply remove the \<url\> tags in the xml file, but that doesnt quite do it.

So, can I comment the actionscript temporarily until i do want to use url’s ? If so, how can I safely do that ?

AS.

```auto
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="+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;
}
};
}

```
