# News ticker not displaying

**URL:** <https://forum.kirupa.com/t/news-ticker-not-displaying/256133>\
**Category:** flash\
**Created:** [March 31, 2008, 6:42am UTC](https://forum.kirupa.com/t/news-ticker-not-displaying/256133 "2008-03-31T06:42:59Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![bimperial](https://avatars.discourse-cdn.com/v4/letter/b/4af34b/32.png) [@bimperial](https://forum.kirupa.com/u/bimperial)\
**Post date:** [March 31, 2008, 6:42am UTC](https://forum.kirupa.com/t/news-ticker-not-displaying/256133/1 "2008-03-31T06:42:59Z")

</div>

Hello,

This is my first time posting here and I’m hoping someone might steer me in the right direction with trouble shooting a news ticker that’s not displaying. The basic ticker was created from the tutorial at [http://www.kirupa.com/developer/mx2004/newsticker.htm](http://www.kirupa.com/developer/mx2004/newsticker.htm). I used the ticker in another mc and it displays fine when I test it locally. This clip is actually called from the main movie and loaded via action script. So to try to clarify a little further, I have main.swf which calls about\_us.swf, about\_us’swf contains the ticker. When I test about\_us.swf locally it pulls my data from the xml file and loads it just fine. When I load about\_us.swf into the main.swf it doesn’t. I hope this makes sense. I’m guessing it has something to do with the levels? Here’s the code for it: TIA

Bob

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.mydomain.com/news.xml?blarg=](http://www.mydomain.com/news.xml?blarg=)”+new Date().getTime());  
//  
function first\_item() {

delay = 3000;  
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;

}

};

}
