# Mouse Trail Help

**URL:** <https://forum.kirupa.com/t/mouse-trail-help/59398>\
**Category:** flash\
**Created:** [July 30, 2004, 11:14pm UTC](https://forum.kirupa.com/t/mouse-trail-help/59398 "2004-07-30T23:14:37Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![STEADICAM](https://avatars.discourse-cdn.com/v4/letter/s/d6d6ee/32.png) [@STEADICAM](https://forum.kirupa.com/u/STEADICAM)\
**Post date:** [July 30, 2004, 11:14pm UTC](https://forum.kirupa.com/t/mouse-trail-help/59398/1 "2004-07-30T23:14:37Z")

</div>

i followed the tutorial and everything works great on the FLASH MX mousetrail special effect. I was wondering if there is anyway to change the color on the text. On my project, I have a black background, and the letters are black on the tutorial. Is there anyway to change the color of the text? Thanks for all your help.

Josh

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 31, 2004, 12:11am UTC](https://forum.kirupa.com/t/mouse-trail-help/59398/2 "2004-07-31T00:11:39Z")

</div>

Define the color for the text in the [font=courier new]TextFormat[/font] object:

```auto
letterformat = new TextFormat();
letterformat.font = "Verdana";
letterformat.align = "center";
letterformat.size = "10";
letterformat.color = 0xFFFFFF;

```

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 31, 2004, 7:44pm UTC](https://forum.kirupa.com/t/mouse-trail-help/59398/3 "2004-07-31T19:44:32Z")

</div>

i am a beginner at flash as far as actionscript goes. can you please give me a detailed script. i want white letters.

josh

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 31, 2004, 8:26pm UTC](https://forum.kirupa.com/t/mouse-trail-help/59398/4 "2004-07-31T20:26:11Z")

</div>

that should be white…

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 2, 2004, 1:34pm UTC](https://forum.kirupa.com/t/mouse-trail-help/59398/5 "2004-08-02T13:34:57Z")

</div>

```auto
Text = "Kirupa has the best site on the net!!!";
letters = Text.split("");
letterformat = new TextFormat();
letterformat.font = "Verdana";
letterformat.align = "center";
letterformat.size = "10";
**letterformat.color = 0xFFFFFF;**
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;
		};
	}
}

```

There… :sigh:
