Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash








Mouse Trail Tutorial Question


i was reading the mouse trail tutorial and i didnt get why
this._x += (_root[letters[this.id]]._x-this.lastX)/speed
would make the the x of the current letter a bit to the left of the letter before it instead of makeing the x values equal.
I also didnt get while it was nessesary to state a variable inside the movie clip id as L since it refers to the current value of l anyway.
any help?




KirupaForum > Flash > ActionScript 1.0/2.0
Posted on: 09-20-2006, 04:13 PM


View Complete Forum Thread with Replies

Sponsored Links:

Mouse Trail Tutorial
I have been using the following tutorial on this site and wonder if anyone can let me know how I would remove the effect when the user clicks a button to move to another part of the site?

http://www.kirupa.com/developer/mx/mousetrailer.htm

thanks to all in advance!

View Replies !    View Related
Mouse Trail Tutorial?
How do I change the color of the Font in the code for the mouse trail tutorial

I tried Letterformat.color = "0xcolor";

But that did not work. Can anyone help?

View Replies !    View Related
Mouse Trail Tutorial
I have been using the following tutorial on this site and wonder if anyone can let me know how I would remove the effect when the user clicks a button to move to another part of the site?

http://www.kirupa.com/developer/mx/mousetrailer.htm

thanks to all in advance!

View Replies !    View Related
Mouse Trail Tutorial?
How do I change the color of the Font in the code for the mouse trail tutorial

I tried Letterformat.color = "0xcolor";

But that did not work. Can anyone help?

View Replies !    View Related
About The Mouse Trail Tutorial By Syko...
hi there!

i was just following the mouse tutorial by Syko, but..

i get only error messages and bad behavior when i incresease the text lenght..

let me explain it a little bit..

this is the actionscript


Quote:




Text = "kirupa";
letters = Text.split("");
letterformat = new TextFormat();
letterformat.font = "Verdana";
letterformat.align = "center";
letterformat.size = "10";
spacing = 8;
speed = 3;
for (L=0; L<letters.length; L++) {
_root.createEmptyMovieClip(letters[L], L);
_root[letters[L]].createTextField(letters[L]+"t", L, L*spacing, 10, 20, 20);
with (_root[letters[L]][letters[L]+"t"]) {
text = letters[L];
setTextFormat(letterformat);
selectable = false;
}
if (L>0) {
_root[letters[L]].id = L;
_root[letters[L]].onEnterFrame = function() {
this._x += (_root[letters[this.id-1]]._x-this.lastX+5)/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;
};
}
}




you see



Quote:




Text = "kirupa";




... well, try to increse the text lenght, for example.. replace "kirupa" with "thisisalongertext" and you'll see what iam talking about..

thanks for your time..

best regards

View Replies !    View Related
About The Mouse Trail Tutorial By Syko...
hi there!

i was just following the mouse tutorial by Syko, but..

i get only error messages and bad behavior when i incresease the text lenght..

let me explain it a little bit..

this is the actionscript


Quote:




Text = "kirupa";
letters = Text.split("");
letterformat = new TextFormat();
letterformat.font = "Verdana";
letterformat.align = "center";
letterformat.size = "10";
spacing = 8;
speed = 3;
for (L=0; L<letters.length; L++) {
_root.createEmptyMovieClip(letters[L], L);
_root[letters[L]].createTextField(letters[L]+"t", L, L*spacing, 10, 20, 20);
with (_root[letters[L]][letters[L]+"t"]) {
text = letters[L];
setTextFormat(letterformat);
selectable = false;
}
if (L>0) {
_root[letters[L]].id = L;
_root[letters[L]].onEnterFrame = function() {
this._x += (_root[letters[this.id-1]]._x-this.lastX+5)/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;
};
}
}




you see



Quote:




Text = "kirupa";




... well, try to increse the text lenght, for example.. replace "kirupa" with "thisisalongertext" and you'll see what iam talking about..

thanks for your time..

best regards

View Replies !    View Related
How Do I Alter Color In Mouse Trail Tutorial
hey i hope that som one can help me.
i have compleated the actionscript tutorial (mouse trail)
my problem is i need the text to be another color then black
i need it to be CC0000

View Replies !    View Related
How Do I Alter Color In Mouse Trail Tutorial
hey i hope that som one can help me.
i have compleated the actionscript tutorial (mouse trail)
my problem is i need the text to be another color then black
i need it to be CC0000

View Replies !    View Related
Change Text Colour On Mouse Trail Tutorial
Hi all. I was wondering how you change the text colour with action script. The Kirupa mouse trail tutorial I was looking at has the following script for the text:

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

I thought I could change the color by adding:

letterformat.color = "#FFCC00";

Is there a way to do this or am I way off track? Any help much appreciated.

View Replies !    View Related
Change Text Colour On Mouse Trail Tutorial
Hi all. I was wondering how you change the text colour with action script. The Kirupa mouse trail tutorial I was looking at has the following script for the text:

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

I thought I could change the color by adding:

letterformat.color = "#FFCC00";

Is there a way to do this or am I way off track? Any help much appreciated.

View Replies !    View Related
Make Mouse Trail Into Object Trail
Hi,

Maybe someone can help - this is really urgent!!

I have a movie with a star graphic travelling across the screen. I want the star to leave behind a trail of other twinkling stars.

I've tried to amend a mouse-trail script to do this, but can't make it work.

Any ideas?

Thanks very much, your help would be really greatly appreciated!

http://www.djbramall.com/star_trails.fla

View Replies !    View Related
Mouse Trail To Movie Trail
I have a mouse trail that uses the following code,

var leaderX = function() { return _xmouse; };

I was wondering if it is possible modify this code section to trail a movieclip instead of the mouse to generate the trail.

thanks

View Replies !    View Related
Mouse Trail (line Trail)
I remember a long long time ago in a galaxy far away there was a mouse trail here that would create a line that would fade out after a while.

i tried googling line and mouse trails but I found nothing

if anyone could help i will be their eternal sex monkey for ETERNITY

thank you

View Replies !    View Related
Custom Mouse Cursor Conflict With Mouse Trail
When I put mouse trails and custom mouse cursor script in the same scene the mouse trails work but the cursor does not change to the custom cursor. If I use the custom mouse cursor script in a seperate scene, on its own, it works fine. I think that the two scripts are conflicting.
Mouse trail script:

onClipEvent (enterFrame) {
//x movement
mx=_root._xmouse;
if (mx<_x) {
dx=_x-mx;
}
else {
dx=mx-_x;
}
moveSpeedx=dx/10;
if (mx<_x) {
_x=_x-moveSpeedx;
}
else {
_x=_x+moveSpeedx;
}
//y movement
my=_root._ymouse;
if (my<_y) {
dy=_y-my;
}
else {
dy=my-_y;
}
moveSpeedy=dy/10;
if (my<_y) {
_y=_y-moveSpeedy;
}
else {
_y=_y+moveSpeedy;
}
}

Custom mouse cursor script:
Layer 1(functions):

stop();
/* update the cursor coords */
function updateCursor() {
_root.cursor._x = _xmouse;
_root.cursor._y = _ymouse;
updateAfterEvent();
}

Layer 2(on event handlers):

onClipEvent(load) {
Mouse.hide();
this.swapDepths(100);
}
onClipEvent(mouseMove) {
_root.updateCursor();
}

Please help!

View Replies !    View Related
Help With Mouse Trail, Can't Get It To Go Vertical When I Stop Mouse
this is the code. the problem is when the mouse stops, the text trail align themselves from left to right. But what i want is for them to go from top to bottom line a line straight down.

Text = ">>>>>>";
letters = Text.split("");
letterformat = new TextFormat();
letterformat.font = "Verdana";
letterformat.align = "center";
letterformat.size = "10";
letterformat.color = 0xFFFFFF;
spacing = 8;
speed = 4;
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-25)/speed;
};
}
}

any suggestions?

View Replies !    View Related
How To Cause A Mouse Trail To Change Scale On Mouse Down Only
I'm still very new to AS, but I have a project I need to complete for work. I have some code for a mouse trail that is working well, but now I need the trail effect to scale up by about 200 pixels (or 6 to 7 times) when the mouse is clicked and held/dragged and go back to original size when the mouse is released. I can't seem to get this to work. Any help with how this should be done? Code is below.
Thank you!

var cursor:MovieClip;
var particle:MovieClip;

function initializeMovie():void {
cursor = new Cursor();
addChild(cursor);
cursor.enabled = false;
Mouse.hide();
stage.addEventListener(MouseEvent.MOUSE_MOVE, dragCursor);
}

function dragCursor(event:MouseEvent):void {
cursor.x = this.mouseX;
cursor.y = this.mouseY;
}

initializeMovie();


var alphaRate:Number = .02;
var scaleRate:Number = .01;


var particleTimer:Timer = new Timer(20);
particleTimer.addEventListener(TimerEvent.TIMER, createParticle);

function createParticle(event:TimerEvent):void {

particle = new Particle();
particle.x = this.mouseX;
particle.y = this.mouseY;
addChild(particle)
particle.addEventListener(Event.ENTER_FRAME, animateParticle);

}

function animateParticle(event:Event):void
{
if(event.target.alpha > 0)
{
event.target.y += 1;
event.target.alpha -= alphaRate;
event.target.scaleX -= scaleRate;
event.target.scaleY = event.target.scaleX;
}
else
{
removeChild(getChildByName(event.target.name));
event.target.removeEventListener(Event.ENTER_FRAME , animateParticle);
}
}

particleTimer.start();

View Replies !    View Related
Mouse Trail
Hey i tryed making mouse trails with the tout... but i couldent figure out the script (End if ?) if someone could help me that would be great

View Replies !    View Related
Mouse Trail
Hi
i'm looking for a script for mouse trail
like in the barbie site
http://www.barbie.com

thanks

View Replies !    View Related
Mouse Trail
Hi
i'm looking for a script for mouse trail
like in the barbie site
http://www.barbie.com

thanks

View Replies !    View Related
Mouse Trail
Help Needed!

Having probs with mouse trail whereby balls will follow the mouse wherever it goes..and balls will animated around the mouse when it is not moving..

View Replies !    View Related
Mouse Trail
hey,


does any1 know how this mouse trail is done??

http://www.spezzo.com/main2.html


i know a lot of html and java. Mouse trails in html are sooo easy. You just copy and paste the code and modify it anyway you want it. Does is work the same with flash, probably not. It's probably a lot more complicated then that.

thx,
Baljinder

View Replies !    View Related
Mouse Trail
I'm trying to get a group of lines/blocks to follow the mouse and lock into a certain place a specific point so it looks something like this:

http://www.chameleoncreative.co.uk

If you've got the know-how or perhaps have seen similar tutorial anywhere please let me know!
Thanking y'all !

View Replies !    View Related
Mouse Trail Help
Hey, I was working on a code for a mouse trailer but it just doesn't seem to be working. I want a trailer that is confined to a space and would "lock" onto a button when the user hovers the button. For an example: http://team-die.net/
As you can seem in the navigation, when a user hovers over the button, there is a moving graphic at the top that is confined to a space and "locks" onto the button the user is currently hovering. I would also like it to have a slight delay. I so far go the mouse to lag but can't find out how to keep it confined and locking onto objects. Any help would be appreciated, thanks.

View Replies !    View Related
Mouse Trail
hey,

how can i create this mouse over effect in Flash?

http://www.mandarinbuffet.com/home.html

if you mouse over the buttons, a little info bar pops-up and follows the mouse (as long as the mouse if over the button).

Thanks.

View Replies !    View Related
MC Trail Mouse
Hey, I've got quite a problem.

I have an MC with an instance name of "buddy". Now within the MC are a bunch of frames, and 3 labels :

stand
walkL
walkR

Back on the main timeline, this is the code on frame 1 (the only frame) {

code: function onEnterFrame() {
if(_xmouse > buddy._x) {
buddy.gotoAndPlay("walkL");
} else if(_xmouse < buddy._x) {
buddy.gotoAndPlay("walkR");
}
}

Basically, if the mouse is to the left of the buddy, make the buddy go to the frame labeled "walkR", and vice versa. But it acts as if it is only "gotoAndStop" and not "gotoAndPlay".

Now, if I add in traces, it detects them fine, meaning the if statements are working - yet when I leave the code that way, it never goes to either of the 2 frame labels (walkL or walkR)...

If I just leave one if statement, then it works fine, but it will only go to one of the labels, thus only allowing the buddy to walk in one direction. It's as if the 2 if statements are clashing, and stopping one another from working.

Is there a better way to do this? All help would be greatly appreciated

View Replies !    View Related
[F5] Mouse Trail
How do I get a movie clip that follows my mouse, but isn't "fast" enough to keep up and sort of lags behind. When the mouse stops moving, the movie clips slows down and stops when it reaches the mouse. Preferably, I would like the movie clip's movement to be restricted to the y-axis when it's following the mouse. Thanks!

View Replies !    View Related
Mouse Trail
I am trying to make a mc tag along with the _ymouse. The _x of the mc is already locked at 200. The thing is i only want the mc to move up and down within a certain area. I also want the mc to lock on to these 4 buttons. I don't want the mc to wander off jus move up and down in the buttons area. Can someone please help me. I'm new to actionscript. The actionscript that I used here is:

onClipEvent (enterFrame) {
diffY = _root._ymouse-10-_y;
_y = _y+diffY/10;
}

How can i modify it so it would fit my needs

View Replies !    View Related
Mouse Trail
I am trying to make a mouse trail with a spherical white blur and a purple line that trails off in alpha.
I have a picture of it at http://www.erawanet.com/images/mouseTrail.jpg

Any ideas how I can implement this?

Many thanks!!!!

View Replies !    View Related
Mouse Trail
I am trying to make a mouse trail with a spherical white blur and a purple line that trails off in alpha.
I have a picture of it at http://www.erawanet.com/images/mouseTrail.jpg

Any ideas how I can implement this?

Many thanks!!!!

View Replies !    View Related
Mouse Trail Help
HI, please can u help? i want to use the mouse trail in the special effects section on this site, but i want the word 'kirupa' to change and be the word 'IMPRESSIONS'......but when i change it, the trail does not trail at all. i dont know much about codes so please can a clever person change the whole code for me and email me it so i can just copy and paste it into flash. i would be ever so grateful, please help me its v important and i will owe u one, i am a designer so could help u some time.. thanks lucy x< please please email me someone!!!!!!!!

View Replies !    View Related
Mouse Trail
hey everybody. im trying to make a mouse trail thingy for my website and wat im tryin to do is there's gonna be a bomb and whenever someone clicks on a hyperlink there's an explosion, but i cant seem to get the code to work. the original code works but when i added the MovieClip.onMouseDown i stopped working.
here's the code:

onClipEvent (load) {
_x = 0;
_y = 0;
speed = 5;
}
onClipEvent (enterFrame) {
endX = _root._xmouse;
endY = _root._ymouse;
_x += (endX-_x)/speed;
_y += (endY-_y)/speed;
}
onClipEvent (enterFrame) {
MovieClip.onMouseDown = function() {
gotoAndStop(2);
}
}

View Replies !    View Related
Mouse Trail
hello..does anyone know how to change the color of the text following the mouse?

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

View Replies !    View Related
Re: Mouse Trail
On the "Mouse Trail" tutorial, for Flash MX here on Kirupa, it doesn't explain how to change the color of your text. Does the text have to stay black or is there a script to change it?

View Replies !    View Related
Mouse Trail Help
if you check out the FLASH MX tutorial section, theres a tutorial for Mouse trail, it works in mx2004 as well. my question is, how to change the color of the mouse trail text, im not sure what code to add tochange the color, default is black

View Replies !    View Related
Mouse Trail
Can I change the color of mouse trail text to any color i want instead of black?

View Replies !    View Related
Mouse Trail
I'm trying to addapt this tutorial here...

What I want to know is; can I change the colour of the trail too?

And is it possible to use somehing other than text as a trail?


/mette

View Replies !    View Related
Mouse Trail
First Question:How do you make the font color white or any other color?


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


Second question:
Okay, I made a complex button and it links to a certain place. How do I make it that when I click the button, it changes only a certain portion of the page to that place?

For example:

I have the title bar, then I have a black bar (navigation bar) and then I have a blue box undernear the navigation bar. Now I click a button on the navi bar and then the blue box changes to that location not the whole page. The title bar and navigation bar are still the same.

View Replies !    View Related
Mouse Trail
hey, i no how to change the colour of the mouse trial but what is the codde (#00FF00 dosent work) for the colour BRITE GREEN

View Replies !    View Related
Mouse Trail
Hi there, I tried to put in the code for mouse trail on my website but it doesnt work? is it a flash thing? can someone please show me the html code to add text mouse trail effect like the one on this site? thanks

View Replies !    View Related
Mouse Trail... How They Did That?
Hi
Does anybody knows, how to make this mouse trail?!
http://www.rassai.com/ourwork/

Thnx

View Replies !    View Related
[OOP] Mouse Trail
hi all...

i recently made motion trail in simple script in stanalonetrail.fla. it works perfectly.

then... i made a class using similar script. what i dont understand is, why it doesnt work in class (OOP)

please have a look at the code in Classes/StarTrail.as and please tell me whats wrong with it.


i really need help in this matter. thx a lot

View Replies !    View Related
Mouse Trail
I am trying to get the code to work for the mousetrail animation. I wanted to change the color and the word. Somehow, when i play the movie, the initial instance displays the word at first and then reverts back to 'kirupa' and the color doesnt change. Can anyone help me with that? PLEASE? I really need it quite urgently, and havent been able to figure it out. TIA!


CODE below:

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

View Replies !    View Related
How Do Do A Mouse Trail
I want to be able to make a mosue trail ie when the mouse gets to a point it will advance to next frame. Any Help anyone?? Thanks Lukeintosh

View Replies !    View Related
Mouse Trail
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;
};
}
}

View Replies !    View Related
Mouse Trail
i want to use the mouse trail in the special effects section on this site, but i want the word 'kirupa' to change and be the word 'IMPRESSIONS'......but when i change it, the trail does not trail at all. i dont know much about codes so please can a clever person change the whole code for me and email me it so i can just copy and paste it into flash.

View Replies !    View Related
Mouse Trail
hey everybody. im trying to make a mouse trail thingy for my website and wat im tryin to do is there's gonna be a bomb and whenever someone clicks on a hyperlink there's an explosion, but i cant seem to get the code to work. the original code works but when i added the MovieClip.onMouseDown i stopped working.
here's the code:

onClipEvent (load) {
_x = 0;
_y = 0;
speed = 5;
}
onClipEvent (enterFrame) {
endX = _root._xmouse;
endY = _root._ymouse;
_x += (endX-_x)/speed;
_y += (endY-_y)/speed;
}
onClipEvent (enterFrame) {
MovieClip.onMouseDown = function() {
gotoAndStop(2);
}
}

View Replies !    View Related
Mouse Trail
hello..does anyone know how to change the color of the text following the mouse?

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

View Replies !    View Related
Re: Mouse Trail
On the "Mouse Trail" tutorial, for Flash MX here on Kirupa, it doesn't explain how to change the color of your text. Does the text have to stay black or is there a script to change it?

View Replies !    View Related
Mouse Trail Help
if you check out the FLASH MX tutorial section, theres a tutorial for Mouse trail, it works in mx2004 as well. my question is, how to change the color of the mouse trail text, im not sure what code to add tochange the color, default is black

View Replies !    View Related
Mouse Trail
Can I change the color of mouse trail text to any color i want instead of black?

View Replies !    View Related
Help With Mouse Trail
Ok, I like the mouse trail called mouse trap. But the problem is how do I make the mouse trail follow the mouse all over the page? Instead of staying in the Flash box?

View Replies !    View Related
Copyright © 2005-08 www.BigResource.com, All rights reserved