[FMX04] as marquee effect

Hi

Hoping someone could help me smooth out this scrolling text script. It works perfect but its not smooth. (keyframes are up at 45fps) I know I can just call the function quicker but it’s just not the effect im lookin for. I want a steady smooth look to it. Any ideas?


iniText = "Hello this is some text.";
mov_cnt=0;

moveText = function()
{
	this.mov_cnt++;
	if (this.mov_cnt==this.iniText.length) this.mov_cnt=0;
	var fir=this.iniText.substring(0, this.mov_cnt);
	var sec=this.iniText.substring(this.mov_cnt);
	var f= sec+"  "+fir;
	this.scrolltxt.text=f;
}

setInterval(this, "moveText", 140);


thanks (-: