# Change color of text with mouse trailer?

**URL:** <https://forum.kirupa.com/t/change-color-of-text-with-mouse-trailer/40296>\
**Category:** flash\
**Created:** [January 16, 2004, 8:08pm UTC](https://forum.kirupa.com/t/change-color-of-text-with-mouse-trailer/40296 "2004-01-16T20:08:08Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![fatherraphael](https://avatars.discourse-cdn.com/v4/letter/f/5e9695/32.png) [@fatherraphael](https://forum.kirupa.com/u/fatherraphael)\
**Post date:** [January 16, 2004, 8:08pm UTC](https://forum.kirupa.com/t/change-color-of-text-with-mouse-trailer/40296/1 "2004-01-16T20:08:08Z")

</div>

I am not knowledgable of actionscript but I can usually follow along with tutorials.  
Recently I was using the mouse trailer script on the site but cannot figure out how to change the color of the text from black to white.  
I tried putting in letterformat.color = “FFFFFF”; but it didn’t work.

Here is the script for the mouse trailer.

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;  
};  
}  
}

Any help will be appreciated. Also if you know of any good books for Flash MX 2004 Actionscript for beginners.

Thankyou,  
fatherraphael
