System.useCodepage = true;
function haberetiketi(icerik, posX, posY, derinlik, tempo) {
this.loadVariables(icerik);
this.onData = function() {
createTextField("text", derinlik, posX, posY, 10, 20);
text.html = true;
text.htmlText = haber;
text.selectable = false;
text.autoSize = "left";
createTextField("text2", derinlik+1, posX, posY, 10, 20);
text2.html = true;
text2.htmlText = haber;
text2.selectable = false;
text2.autoSize = "left";
text2._x = text._width;
function tick() {
text._x -= tempo;
text2._x -= tempo;
if (text2._x<=posX) {
text._x = posX;
text2._x = text._width+posX;
}
updateAfterEvent();
}
setInterval(tick, 30);
};
}
haberetiketi("haber.txt", 0, 7, 1, 1);