Mouse Trail Help

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

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

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

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

josh

that should be white…

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: