# Change MOUSE TRAIL color using paste scripts

**URL:** https://forum.kirupa.com/t/change-mouse-trail-color-using-paste-scripts/181346
**Category:** flash
**Created:** [March 8, 2006, 3:37pm UTC](https://forum.kirupa.com/t/change-mouse-trail-color-using-paste-scripts/181346 "2006-03-08T15:37:31Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![snowcrash11221](https://avatars.discourse-cdn.com/v4/letter/s/e19b73/32.png) [@snowcrash11221](https://forum.kirupa.com/u/snowcrash11221)
#### Post date: [March 8, 2006, 3:37pm UTC](https://forum.kirupa.com/t/change-mouse-trail-color-using-paste-scripts/181346/1 "2006-03-08T15:37:31Z")

</div>

How do i change the default mouse trail color from black to a blue color?  
Any help would be great. Thank you :cowbell:

Color I need for mouse trail: #668DE6

* * *

snowcrash11221

Code from [KIRUPA.com](http://KIRUPA.com):

Text = “Kirupa has the best site on the net!!!”;  
letters = Text.split("");  
letterformat = new TextFormat();  
letterformat.font = “Verdana”;  
letterformat.align = “center”;  
letterformat.size = “10”;  
spacing = 8;  
speed = 3;  
for (var LTR = 0; LTR\<letters.length; LTR++) {  
mc = \_root.createEmptyMovieClip(LTR+“l”, LTR);  
mc.createTextField(letters[LTR]+“t”, LTR, LTR\*spacing, 10, 20, 20);  
with (mc[letters[LTR]+“t”]) {  
text = letters[LTR];  
setTextFormat(letterformat);  
selectable = false;  
}  
if (LTR) {  
mc.prevClip = \_root[(LTR-1)+“l”];  
mc.onEnterFrame = function() {  
this.\_x += (this.prevClip.\_x-this.\_x+5)/speed;  
this.\_y += (this.prevClip.\_y-this.\_y)/speed;  
};  
} else {  
mc.onEnterFrame = function() {  
this.\_x += (\_root.\_xmouse-this.\_x+10)/speed;  
this.\_y += (\_root.\_ymouse-this.\_y)/speed;  
};  
}  
}
