I’ve been combining a few different tickers and xml code that I have to create a dynamic news ticker. However I’m stuck with not being able to get my flash to pull the xml link data.
Below is the code where the link is, I also attached my files. Any help would be much appreciated. thanks!!
if (this.incre < 0) {
this.incre = newsArray.length - 1;
}
//trace(this.incre)
//
myTick.txt.t1.text = myTick.txt.t2.text = newsArray[this.incre][0];
myTick.t0.text = newsArray[this.incre][1];
//
myTick.txt.t1.autoSize = myTick.txt.t2.autoSize = true;
myTick.msk._width = myTick.txt.t1._width + 5;
over = new TextFormat();
over.underline = true;
over.bold = true;
over.color = 0x006699;
myTick.onRollOver = function() {
myTick.txt.t1.setTextFormat(over);
}
out = new TextFormat();
out.underline = false;
out.color = 0x003366;
myTick.onRollOut = function() {
myTick.txt.t1.setTextFormat(out);
}
//reads as undefined
**myTick.onRelease = function() {
getURL(newsArray[newsArray.length - 1][2], newsArray[newsArray.length - 1][3]);**
}
var cur:Number = this.incre + 1;
//pulls the title seperately
tnews.text = cur + "/" + newsArray.length;
title_txt.text = s_title;
//
if (this.incre < newsArray.length - 1) {
this.incre++;
} else {
this.incre = 0;
}
//
mmask.cacheAsBitmap = true;
myTick.cacheAsBitmap = true;
myTick.setMask(mmask);