Hey -
I have a news scroller which is working apart from one thing:
The end of the text string does not quite scroll completely off the screen - it disappears into thin air near the end and THEN starts scrolling from right to left again.
How do I make it so the text scrolls completely off the screen before returning?
var loadText:LoadVars = new LoadVars();
loadText.load("news.txt");
loadText.onData = function(src:String):Void {
if (src != undefined) {
news_txt.htmlText = " "+src;
scrollText();
} else {
news_txt.htmlText = "could not load data";
}
};
function scrollText() {
onEnterFrame = function () {
if (news_txt.hscroll<news_txt.maxhscroll) {
news_txt.hscroll+=30;
} else {
news_txt.hscroll = 1;
}
};
}