Everything works fine, except, when the text being displayed contains special characters (such as the german umlauts ä, ö, ü) the text is being anti-aliased… anyone a clue?
the text comes from a rss-feed, i tried a local file, utf-8 formatted, but that wouldn’t help. here’s the code:
//gotoAndStop(50);
var loops = true;
var loopstop = false;
var loopCounter = 0;
var ticker_y = 0;
System.useCodepage=true;
tickerformat = new TextFormat();
tickerformat.underline = true;
//tickerformat.bold = true;
function loadXML(loaded) {
if (loaded) {
for (i = 0; i <= 20; i++) {if (this.firstChild.childNodes[0].childNodes*.nodeName == “item”) {item = i;break;}}
for (i = 0; i <= 20; i++) {if (this.firstChild.childNodes[0].childNodes[item].childNodes*.nodeName == “title”) {ti_n = i;break;}}
for (i = 0; i <= 20; i++) {if (this.firstChild.childNodes[0].childNodes[item].childNodes*.nodeName == “link”) {li_n = i;break;}}
nx = this.firstChild.childNodes[0].lastChild.childNodes[0].firstChild.nodeValue;
for (i = 0; i <= 100; i++) {
ni = this.firstChild.childNodes[0].childNodes*.childNodes[0].firstChild.nodeValue;
if (ni == nx) {numOfNodes = i-item;lastNode = i;break;}
}
ticker_y = 2-30*numOfNodes;
for (i = 0; i <= numOfNodes; i++) {
n = "news"+i;
l = "link"+i;
_root[l] = this.firstChild.childNodes[0].childNodes[item+i].childNodes[li_n].firstChild.nodeValue;
ticker.txtbox.attachMovie("newsmaster", n, i);
ticker.txtbox[n].txt.text = this.firstChild.childNodes[0].childNodes[item+i].childNodes[ti_n].firstChild.nodeValue;
ticker.txtbox[n].txt.setTextFormat(tickerformat);
ticker.txtbox[n]._x = 30;
ticker.txtbox[n]._y = 30 + i * 30;
}
} else {trace("file not loaded!");}
}
ticker.txtbox.setMask(ticker.tickermask);
xmlData = new XML();
xmlData.ignoreWhite = true;
xmlData.onLoad = loadXML;
xmlData.load(“http://www.1asport.de/enid/rss/1aSport.rss”);
Thank you!
Peter