# Mouse Trail

**URL:** <https://forum.kirupa.com/t/mouse-trail/259586>\
**Category:** Uncategorized\
**Created:** [May 6, 2008, 9:42pm UTC](https://forum.kirupa.com/t/mouse-trail/259586 "2008-05-06T21:42:39Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![akahao](https://avatars.discourse-cdn.com/v4/letter/a/977dab/32.png) [@akahao](https://forum.kirupa.com/u/akahao)\
**Post date:** [May 6, 2008, 9:42pm UTC](https://forum.kirupa.com/t/mouse-trail/259586/1 "2008-05-06T21:42:39Z")

</div>

Hey - I am trying to do your tutorial for the mouse trail and I want it to say designsbymikele but it isn’t working. The is the code below, are you able to help me trouble shoot why this isn’t working?

//–Type in all the letters–  
Text = " designsbymikele";  
letters = Text.split("");  
//–The text appearance–  
letterformat = new TextFormat();  
letterformat.font = “Verdana”;  
letterformat.align = “center”;  
letterformat.size = “10”;  
//–Custom values–  
spacing = 12;  
speed = 3;  
//–Creating the text–  
for (L=0; L\<letters.length; L++) {  
\_root.createEmptyMovieClip(letters[L], L);  
\_root[letters[L]].createTextField(letters[L]+“t”, L, L\*spacing, 10, 50, 20);  
with (\_root[letters[L]][letters[L]+“t”]) {  
text = letters[L];  
setTextFormat(letterformat);  
selectable = false;  
}  
//–Making it move–  
if (L\>0) {  
\_root[letters[L]].id = L;  
\_root[letters[L]].onEnterFrame = function() {  
this.\_x += (\_root[letters[this.id-1]].\_x-this.lastX)/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;  
};  
}  
}
