# \[FMX04\] as marquee effect

**URL:** https://forum.kirupa.com/t/fmx04-as-marquee-effect/200286
**Category:** flash
**Created:** [September 11, 2006, 6:21am UTC](https://forum.kirupa.com/t/fmx04-as-marquee-effect/200286 "2006-09-11T06:21:47Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![b\_rich](https://avatars.discourse-cdn.com/v4/letter/b/53a042/32.png) [@b\_rich](https://forum.kirupa.com/u/b_rich)
#### Post date: [September 11, 2006, 6:21am UTC](https://forum.kirupa.com/t/fmx04-as-marquee-effect/200286/1 "2006-09-11T06:21:47Z")

</div>

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?

```auto

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 (-:
