# About the mouse trail tutorial by Syko

**URL:** <https://forum.kirupa.com/t/about-the-mouse-trail-tutorial-by-syko/32027>\
**Category:** Uncategorized\
**Created:** [September 30, 2003, 6:03pm UTC](https://forum.kirupa.com/t/about-the-mouse-trail-tutorial-by-syko/32027 "2003-09-30T18:03:17Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Locura](https://avatars.discourse-cdn.com/v4/letter/l/b9e5f3/32.png) [@Locura](https://forum.kirupa.com/u/Locura)\
**Post date:** [September 30, 2003, 6:03pm UTC](https://forum.kirupa.com/t/about-the-mouse-trail-tutorial-by-syko/32027/1 "2003-09-30T18:03:17Z")

</div>

hi there!

i was just following the mouse tutorial by Syko, but…

i get only error messages and bad behavior when i incresease the text lenght…

let me explain it a little bit…

this is the actionscript

> 

Text = “kirupa”;  
letters = Text.split(“”);  
letterformat = new TextFormat();  
letterformat.font = “Verdana”;  
letterformat.align = “center”;  
letterformat.size = “10”;  
spacing = 8;  
speed = 3;  
for (L=0; L\<letters.length; L++) {  
\_root.createEmptyMovieClip(letters[L], L);  
\_root[letters[L]].createTextField(letters[L]+“t”, L, L\*spacing, 10, 20, 20);  
with (\_root[letters[L]][letters[L]+“t”]) {  
text = letters[L];  
setTextFormat(letterformat);  
selectable = false;  
}  
if (L\>0) {  
\_root[letters[L]].id = L;  
\_root[letters[L]].onEnterFrame = function() {  
this.\_x += (\_root[letters[this.id-1]].\_x-this.lastX+5)/speed;  
this.\_y += (\_root[letters[this.id-1]].\_y-this.lastY)/speed;  
this.lastX = this.\_x;  
this.lastY = this.\_y;  
};  
} else {  
\_root[letters[L]].onEnterFrame = function() {  
this.\_x += (\_root.\_xmouse-this.lastX+10)/speed;  
this.\_y += (\_root.\_ymouse-this.lastY)/speed;  
this.lastX = this.\_x;  
this.lastY = this.\_y;  
};  
}  
}

you see

> 

Text = “kirupa”;

… well, try to increse the text lenght, for example… replace “kirupa” with “thisisalongertext” and you’ll see what iam talking about…

thanks for your time…

best regards
