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








Masking A Mouse Trailer


Hi--

I'd like to be able to constrain a mouse trailer within a boundary, as if it was masked. (I tried using a mask, but to no avail.)

Here's the code for the trailer:


onClipEvent (load) {
i = 1;
}
onClipEvent (mouseMove) {
duplicateMovieClip("_root.clip", "mc"+i, i);
_root["mc"+i]._x = _root._xmouse;
_root["mc"+i]._y = _root._ymouse;
i++;
if (i == 50) {
i = 1;
}
}
onClipEvent (mouseDown) {
_root.gotoAndStop("square");
}

Also, notice that I have a mouseDown event that takes the user to the next frame where a new trailer begins. There's a problem with this also:

When it moves to the next frame, the previous trailer won't stop until the code from the first frame is finished. I'd like to immediately stop the first trailer on mouseDown. I can't seem to find code to do this (thus the posting in "newbies".)

And yet one more question...

If I import mousetrailer.swf into a main movie, the trailer works if it's loaded into a level, but not into a target (host clip.)

A Flash Guru friend of mine told me it's possible to tweak the properties of a level, but I haven't seen any references to this. If it's possible to tweak level properties, I'd love to know how!

Any help with this would be appreciated.

Thanks! (And sorry for the pile of questions!)

--Vincognito

beta website:
www.vincognito.com




FlashKit > Flash Help > Flash Newbies
Posted on: 05-01-2003, 12:09 PM


View Complete Forum Thread with Replies

Sponsored Links:

Mouse Trailer To Follow Path Instead Of Mouse
I need help taking any old mouse trailer and having it follow a predetermined path (like a simple rectangle) instead of following the mouse cursor. I'm very new to flash and would love to be shown how to do this. I'm not even very clear on how you get a mouse trailer to work let alone disecting it and having it follow a path. I really just want to start with a black background, animate the process of drawing a rectangle, then follow the rectangle with an animation of sparks (I've seen some mouse trailers like this) of some sort (kind of like you're cutting a piece out with a blow tourch), then have the center of the rectangle fall away revealing a mask where I can show a scrolling slideshow. Easy right?! Well I don't think so and I could sure use the help!

Thanks in advance,
Tim

View Replies !    View Related
Mouse Trailer Effect For A Symbol Vs. A Mouse
i am trying to create a trail behind an object - like a mouse trailer. i have found many mouse trailer scripts but do not know what to adjust so that it will follow an object/symbol versus the mouse movement....thanks for you help....here is the script that i was gonna use....

//initialization
d=1;
speed=10;
ssize=10;
dif=60;

//create sample
_root.createEmptyMovieClip("sample", 16000);
with(_root.sample){
lineStyle(5, 0x0, 70);
moveTo(-10, 0);
lineTo(10, 0);
moveTo(0, -10);
lineTo(0, 10);
}

//hide sample
_root.sample._visible=0;

//duplicating clips
_root.onMouseMove=function(){
duplicateMovieClip("sample", "start"+d, d);
_root["start"+d]._x=_root._xmouse+random(dif)-dif/2;
_root["start"+d]._y=_root._ymouse+random(dif)-dif/2;
_root["start"+d]._width=ssize;
_root["start"+d]._height=ssize;
mColor=new Color(_root["start"+d]);
mColor.setTransform({rb:random(256), gb:random(256), bb:random(256)});
_root["start"+d]._visible=1;
_root["start"+d].onEnterFrame=function(){
this._alpha-=speed;
if(this._alpha<=0) removeMovieClip(this);
}
d++;
}

View Replies !    View Related
Mouse Trailer
I've made this thus far; would anyone know how to make sure the instances of the movie clip I'm using aren't in tune with each other (all doing the exact same thing at the exact same time)? I can't figure it out.

The .swf
http://www.geocities.com/cronobrian/fairyface.swf

The .fla
http://www.geocities.com/cronobrian/fairyface.fla

Thanks.

View Replies !    View Related
Mouse Trailer Help
Can someone show me how to make a mouse trailer??? i would really like to learn. please show me like step by sep im like a major newb at action scripting and i wanna understand it a little better.

View Replies !    View Related
Mouse Trailer
I got this script from a tutorial here. I created a mc named star and placed this in the mc

onClipEvent (mouseMove) {
i++;
this.duplicateMovieClip("star"+i, i+10);
_root["star"+i]._x = _root._xmouse;
_root["star"+i]._y = _root._ymouse;
}
onClipEvent (enterFrame) {
if (this._name == "starParent") {
_visible=0;
}else{
this._alpha -= 5;
this._rotation += 2;
this._xscale -= 5;
this._yscale -= 5;
if (this._alpha <= 5) {
removeMovieClip(this);
}
}
}

to start with its not working for me. As soon as the alpha goes to what im seeing in the script bellow or equal to 5 then nothing happens no more mouse trail
I understand the top mouse move that it duplicates the mc and then sets it x,y position to the position of the mouse x,y. Im only guessing the i+10 is duplicatin 10 mc?


can someone tell me whats wrong with this

View Replies !    View Related
Mouse Trailer
Hey everyone, I'm using a script to have a white bar follow the mouse with an ease in feature when it is over a certain area of the flash. Below is the script.


if (_root._ymouse < 335) {
if (_root._xmouse < 530) {
// capture mouse position
targety = _root._ymouse;
disty = targety-shapey;
// apply inertia equation
shapey = Math.round(shapey+(disty/speed));
// perform animation
_y = shapey;
}
}


My problem is that whenever the mouse leaves the area to the right or below. The white bar stops immediately and doesn't ease out to the last mouse position. I've tried the script as so:


if (_root._ymouse < 335) {
if (_root._xmouse < 530) {
// capture mouse position
targety = _root._ymouse;
disty = targety-shapey;
}
}
// apply inertia equation
shapey = Math.round(shapey+(disty/speed));
// perform animation
_y = shapey;


All that does is make the white bar keep going right off the page.

Any help would be greatly appreciated.
You can see what I'm talking about at www.crudocanada.com/test

View Replies !    View Related
Mouse Trailer
Heres the deal. I have an pbject following the mouse with drag. It's on a task bar so the object has the ability to stop anywhere on the tak bar. BUT, I don't want it to be able to do that I need to set some parameters so it can't drage in between the button but it will stop at the end of each button and start at the next. Here my code.

onClipEvent (enterFrame) {
// you can change speed by changing number 5 on the end with number of your choice
this._x +=(_root._xmouse-this._x)/5;
}


I can't figure it out....help

cary

View Replies !    View Related
Mouse Trailer Help
ok look at the attached file, *** note how it clumps up near the mouse ***
i wanna get rid of that and just make it a single strand of box's.
no clumpy!

View Replies !    View Related
Mouse Trailer
How do i add a mouse trailer.

I am more than a newbie, just learning so i thought the best way is to buy a swish site which i did to figure out construction from a finished product backwards.

It has worked, I am figuring this out, but the mouse trailer i thought i would add as flash effect was one i got from swishzone, where and how do i do that. the swish site i purchased was circles.

I want the mouse trailer to show up on every page. Do i put it on the splash page??? HELP please!!

View Replies !    View Related
Mouse Trailer
Hello everyone!


I need a "mouse trailer" made with flash(just to take the action script i will make my own design).

But i don't want like when i move the mouse the trailer to come to the mouse, i want the opposite, when i move the mouse in direction of the "trailer" the "trailer" to go away!!!


Help appreciated




SORRY FOR MY POOR ENGLISH!

View Replies !    View Related
Mouse Trailer
I am using a movie clip that follows the mouse on the y axis with this script:

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


I am wondering how to stop the movie clip from moving when the the mouse is over the movie clip.

I want to attach a menu to the movie clip, so that when you mouse over the movie clip, a menu appears, but if the movie clip still moves, you wouldn't be able to clik on any of the links in the menu.

View Replies !    View Related
Mouse Trailer
how can I create this effect :

a faint line is created by the path of the user' s mouse (a map of where the mouse has been if you will) and It would slowly disapate. (similar to when a jet flies overhead but just a line)

Is this possible in flash


help

View Replies !    View Related
Mouse Trailer
I am trying to replicate (in fuction at least) the mouse trailer seen here:

http://milkhandbags.com/

I looked through Flashkit but couldn't find any that had this type of flow, spacing and the fade in and out between 2 trailers.

Can someone help me out here?

Any help would be greatly appreciated

View Replies !    View Related
Mouse Trailer
First of all, I am new to flashkit and would like to say hi to all!
I have created a website using flash 8. It took a while because am a total newbie. I have a great mouse trailer that is already built that I would like to incorporate into the site I built. How do I insert this mouse trailer (I have both the swf and fla files for trailer) into my new flash website. I am totally lost on how this is done.
Thank you to anyone who can help me with this.
Nakai ::

View Replies !    View Related
Mouse Trailer ?
I learned about mouse trailer with the tutorial in flashcircle.com.
There are 3 frames code, with duplicateMovieClip action. But i forgot how to do it . I try but there are something wrong, I cant find the tutorial because when i type flashcircle.com it links to sitepoints.com, lol. Please tell me the script or the link of that mouse trailer! Thx,

View Replies !    View Related
Mouse Trailer
ei...i kinda wonder what its called, the line in this site's navigation..its the line that moves from left to right when the pointer moves in the mc..ive tried searching , but cant seem to find one..sorry..

View Replies !    View Related
Mouse Trailer
ei...i kinda wonder what its called, the line in this site's navigation..its the line that moves from left to right when the pointer moves in the mc..ive tried searching , but cant seem to find one..sorry..

View Replies !    View Related
Mouse Trailer Problem
I have created a simple preloader (On 1st frame: if frame 200 is loaded...go to and play 12. On 2d frame go to and play frame 1) I have also placed a mouse trailer. Part of the mouse trailer's AS is placed directly on the frame on the timeline.
My problem is that when I extended the mouse trailer's frame from frame 1 to frame 2 (I had to do it because of the need of the preloader's AS) my mouse trailer got crazy!!! It does follow my mouse, but it doesn't leave trails.
And my second problem is that when the head moves to the main movie (once it is loaded) the mouse trailer still works (the way I described it above). Propably I should wright some kind of script to tell flash to stop tracking my mouse but...HOW? ...and WHERE?

P.S. I don' t know if this helps but just in case here is the AS of the mouse trailer that is placed directly on the frame:

var copies=10;
for (var i=1; i<copies; i++) {
duplicateMovieClip ("drag0", "drag"+i, i);
eval("drag"+i).num = i;
eval("drag"+i)._rotation = 360/copies*i;
eval("drag"+i)._alpha = 100-(100*i/copies);
}

View Replies !    View Related
Preload Mouse Trailer
I have created a mouse trailer using an actionscript. http://www.geocities.com/samos1959/preload.htm
I put it within a movieclip and tried to load it as a preload but it does not show up when we need it to preload-Does anyone knnow how to resolve this issue. http://www.geocities.com/samos1959/olympic.htm
This is to view the olympic page that has the preload as nothing appears when you scroll your mouseover the image.

Thank you
Help asap is appreciated.

View Replies !    View Related
Mouse Trailer Problems
Hey! I need help really bad. I have a mouse trailer (a movie clip) that follows the mouse wherever its at horizontally. It just stays on one "line" going back and forth wherever the mouse is at. I have that using this:

onClipEvent (enterFrame) {
startDrag (getProperty (_x,_y), true, 1, 18, 600, 18);
}

My problem now is that i need that movie clip to only follow the mouse whenever the mouse pointer is on the same "line". Right now if the mouse is under that "line" the clip still follows it back and forth horizontal. I only need it to work when its on that line (the line where the clip is on). Does anyone know what i mean? I need this is for a menu.

Can anyone help? I'd appreciate it! Thanks.

View Replies !    View Related
Button Mouse Trailer
hi everyone;
im doing a movie for aquaiurm site,i want a mouse trailer of a fish appearing when i move over the selected button and the orignal mouse hand disappear,does anyone have a script for that??

View Replies !    View Related
Unload Mouse Trailer
Hi,
I'm trying to unload a mouse trailer when the scene changes. I've already tried attaching an actionscript to the button that triggers the scene change that says
On (Press)
Unload Movie ("/CursorTrail")
End On
but that didn't work....
I'm confused.
It's on the "GO" button at the end of this movie:

http://jizzy.i8.com/energy2.htm

Any help would rock, thanks.
Jess

View Replies !    View Related
Similar To A Mouse Trailer
Hi,

If you go to http://www.studiocmd.com/corporate/corpindex.htm you will see once it has loaded, there is a picture of a fish which shows in colour when the mouse is over it. It seems to me, that it is a type of masked mouse trailer. I have looked on this site for tutorials on mouse trailers, but only found one, and that appeared to be for Flash 4. Can anyone help me achieve this???

Thanks in Advance

Barry

View Replies !    View Related
Mouse Trailer - Advanced
my attempt is this: whenever the cursor moves, i want a random text to appear to the right or left of the cursor. seems like a simple task, but i am having difficulty. any help will be greatly appreciated.

View Replies !    View Related
Preloader And Mouse Trailer Help
Hi,

I want to add a preloader to a swf which is made up mostly of a loaded movie clip I created in Swish. The only other part of the swf outside of the loaded MC is a sound loop. I have Flash MX. I don't know how to do this since there is actually only one frame in the swf file, but 7700 frames in the loaded MC.

Also I found a clip I want to use in my preloader that I don't know how to modify. I've attached it here. I need to modify the "presents" movie clip contained in the movie "amaze" but I can't figure out the masking issue enough to change the letters.

And I also have a mouse trailer I want to put in the preloader, but I don't know how to add it. Do I add it as a looping layer or scene in the preloader? It's 4 frames.

And does the preloader go into the original swf as a diff layer or scene or a separate swf?

Thank you,
Jennifer

View Replies !    View Related
Mouse Trailer - Text ?
Hello,

Anybody knows where to get tutorial or code to create mouse trailer-text (text mask that follows mouse pointer)?

I've been looking for it, and they all seemed hard to understand.


thx alottt...


m4non

View Replies !    View Related
Mouse Trailer (y-axis)
Hi, I would like to create a mouse trailer however i only want the trailer to follow the mouse on the y-axis. I must also be able to configure the co-ordinates that i would like the trailer to appear.

Please help because this simple task is causing me much brain damage!!

View Replies !    View Related
Mouse Trailer, Add Randomness?
I'm not sure I have worded this very well, but I hope someone can help me out.
What I'm trying to achieve is to have a mc that follows the mouse, but has randomness added, so you don't have complete control over it.
If you have a look at http://195.92.224.73/j20/content/host.asp
you will see an example of what I am trying to achieve
Alternatively, if anyone knows how else to achieve this effect?

JennyJ

View Replies !    View Related
Mask Mouse Trailer
Help please.
Been trying to work this out all morning. I am trying to acheive this effect:

http://www.fabrislane.co.uk/

I have a mask following the mouse but when the mouse stops the mask keeps going. Any ideas on this??

View Replies !    View Related
Please Help With Simple Mouse Trailer
This mouse trailer works when exported as flash7 or below, but doesn't work when exported as flash8. What am i doing wrong?

I just have 1 mc on the stage with this code:


Code:
onClipEvent (load) {
dupe = 1;
max = 25;
x1 = _xmouse;
y1 = _ymouse;
}
onClipEvent (enterFrame) {
attachMovie("line", "line"+dupe, dupe, {_x:x1, _y:y1, _xscale:(_xmouse-x1), _yscale:(_ymouse-y1)});
x1 = _xmouse;
y1 = _ymouse;
dupe++;
if (dupe>=max) {
dupe = 1;
}
}
The line movie clip, is just a clip with a line that fades in 25 frames.

Here's a link so you can see what happens:
http://www.brand-wagon.com/trailer.html

You can see the line movie clips break apart for some reason. But this does not happen when exported as flash7. It's very strange. Any suggestions?

View Replies !    View Related
Problem With Mouse Trailer
I am trying to make the mouse trailer seen here:

http://milkhandbags.com/

I looked through Flashkit but couldn't find any that had this type of flow, spacing and the fade in and out between 2 trailers.

How the heck do I do this?

Any help would be greatly appreciated

View Replies !    View Related
Mouse Trailer Issue
hi there!

i found the following script for at mouse text trailer:

Text = "WELCOME";
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++) {
var val = 255*LTR/letters.length;
letterformat.color = val << 16 | val << 8 | val;
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;
}
}
}

what i want to do is only showing the mouse trailer when the mouse hits one certain movieclip. i've tried several things with the hittest script, but i just can't get it to work. can anyone help me???

View Replies !    View Related
[F8] Mouse Trailer...pleeeze Help
Hi!
I am VERY new to flash... I obtained a file that is a mouse trailer (stars & flakes) but do not know where & how to place in in my DW8 website.
ANY help will be greatly appreciated!!!
MANY thanks!
Chris

View Replies !    View Related
Mouse Text Trailer
PLS. I want a tutorial for mouse text trailer. TKX

View Replies !    View Related
Newbie Needs Help With Mouse Trailer
Hello all,

This newbie needs your help. I am studying the "mouse trail" tutorial in Flash MX section. I am getting the beginning part of the code but the latter is still a little over my head right now. When I use it the way it is written. The letters follows the mouse cursor everywhere. Which is great. But I like to use it only in the "over" state of a button. So the letters "click me" will only appear and trail the cursor within the hit area of the button. Then disappear once the mouse cursor moves out of the hit area of the button. I got the "click me" trailing the mouse cursor to work when rolled over the button with this code

myButton.onRollOver = function() {
clickme();
};

//clickme() is the function I made with all the original code except the first line.

Now my problem is I don't/can't stop it from staying on when the cursor rolled out of the hit area. The original code is listed below. Your help is appreciated and I am really sorry for the long post.

-------------------------------------------------
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
SetMask Using Mouse Trailer (MX) ?
i have had this file sitting around a while and what i would like to do is make the blob/bubbles mouse trailer actually set as a mask for an image or mc.
all the code sits on a small control clip just outside the stage.

here be the fla - blob.fla

also any hints on how to get this little thing to work in MX 2004 ?
thanks in advance
sky

View Replies !    View Related
Mouse Trailer - Text ?
Hello,

Anybody knows where to get tutorial or code to create mouse trailer-text (text mask that follows mouse pointer)?

I've been looking for it, and they all seemed hard to understand.


thx alottt...


m4non

View Replies !    View Related
Mouse Trailer On Navigation
Hi there
You know how some flash sites have navigation buttons and everytime you put your mouse over the other navigation button there is a line or an "element" that comes and follows the mouse and stays under that navigation options?

Does anyone know how to do that? or are there any tutorials out there to help me do that?

Thanks

View Replies !    View Related
How Do You Put A Mouse Trailer In A Scene?
i did a mouse trailer using flash from a tutorial. it's was ok when i tested the mouse trailer swf.

the problem starts is when i transfer the mouse trailer together with it's script to my actual work file, it doesn't seems to run...and i have preloader as well on my first frame..

do i need to put a script to run it?

View Replies !    View Related
Mouse Trailer Tutorial
hi, how can i choose the colour of the text with this tutorial?
thanks.
http://www.kirupa.com/developer/mx/mousetrailer.htm

View Replies !    View Related
Newbie Needs Help With Mouse Trailer
Hello all,

This newbie needs your help. I am studying the "mouse trail" tutorial in Flash MX section. I am getting the beginning part of the code but the latter is still a little over my head right now. When I use it the way it is written. The letters follows the mouse cursor everywhere. Which is great. But I like to use it only in the "over" state of a button. So the letters "click me" will only appear and trail the cursor within the hit area of the button. Then disappear once the mouse cursor moves out of the hit area of the button. I got the "click me" trailing the mouse cursor to work when rolled over the button with this code

myButton.onRollOver = function() {
clickme();
};

//clickme() is the function I made with all the original code except the first line.

Now my problem is I don't/can't stop it from staying on when the cursor rolled out of the hit area. The original code is listed below. Your help is appreciated and I am really sorry for the long post.

-------------------------------------------------
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
Mouse Trailer With Pre-defined Location
Hi,

I learnt the object movement relative to mouse in http://actionscripts.org/tutorials/i...index3.shtml#.

I have a sub-menu buttons like estudio.com which was loaded on level 5 (the highest level).

I made a controller mc in which I put the following code:

frame 1:
if (_root._xmouse>_level5.circle._x) {_level5.circle._x = (_level5.circle._x+1);} else {_level5.circle._x = (_level5.circle._x-1);}

frame 2:
if (_root._xmouse>_level5.circle._x) {_level5.circle._x = (_level5.circle._x+1);} else {_level5.circle._x = (_level5.circle._x-1);}
gotoAndPlay(1); //to create a loop.

It plays well in my main movie (move horizontally). Since I made 5 buttons and want that mouse trailer "center" treated as a pointer. However, how can I fix the location of that mouse trailer for button 1, 2, ..5? I mean the mouse trailer will be moved and placed exactly on the top of each button like the sub-menu bar of estudio.com.

How can I set that parameters?

Thanks for any kind help.

net2

View Replies !    View Related
Stopping Mouse Trailer On Click
I am trying to make a menu (presently this is a movie clip with buttons inside) that follows the mouse side to side but when you click the mouse to view the menu options the menu (movie clip that is going side to side) stops. Is this possible? My actionscripting is limited to what I can learn in tutorials. Here is the code for the side to side action.

onClipEvent (enterFrame) {
// x movement
mx = _root._xmouse;
if (mx<_x) {
dx = _x-mx;
} else {
dx = mx-_x;
}
moveSpeedx = dx/30;
if (mx<_x) {
_x = _x-moveSpeedx;
} else {
_x = _x+moveSpeedx;
}
}

thanks for any help....
i almost forgot here is the url...
http://www.not-a-com.com/flashtests/

Evie

View Replies !    View Related
Elastic Mouse Trailer/follower
elastic mouse trailer/follower:

how do i or wot is the actionscript to make a mouse trailer with 2 different movie clips following it. these mc's follow the mouse, but when it stops they fly past and return slowly swinging rond the mouse, i have seen it using javascript but want 2 do it in flash.

i have checked all the tutes and looked at all the uploaded mouse trailers, none of which do quite what i want.

any help at all would be great.

cheers

View Replies !    View Related
Help Mouse Trailer Doesn't Work
Hi guys,

I've been working on this java script to create a mouse trailer (text follows mouse pointer).

I still can't find out, how come the trailer only appears outside the flash movie.

Anybody can help me?

Please find the work here:

http://www.geocities.com/m4non/WTC.html


Thx a lot,

cheers,

m4non

View Replies !    View Related
Mouse Trailer Effect For Menu Bar
i want to recreate an effect that i've seen used on a lot of sites, the effect is similar in principle to a mouse trailer i think. I have a vertical navigation section on my site, nothing flashy, no drop downs etc, just plain rollover's with the pagenames. On the left hand side of the pagenames i want to have a small logo that follows the cursor up and down and moves to stick to the particular button that has been pressed, i dont want the logo to totally follow the mouse, just move along a constrained vertical line that is aligned to the buttons. any ideas, tutes or fla's people know of?. I started looking through the mouse trailers in the movies section but i'm on dial up for the moment and theres hundreds to get through so if anyone knows of a script i could look at it would be much appreciated.

Thanks.

View Replies !    View Related
Roll Over Mouse Trailer And Another Thing..
Hello, I'm new to flash and I can't find any tutorials on how to create a rollover an object mouse trailer.

Can anyone please create a simple mouse trailer when they over roll over an object, it will help very much.

Also if anyone can help make a draggable object that is contrain to a path. The path is not a straight line, it has few a huge curve and I can't find way to attach the object to path and make it draggable

Sorry for poor english it's my second language. Thanks in advance.

View Replies !    View Related
Mouse Trailer Works But I Have A Question
I modified code that I downloaded from Colin Moock's website that has to do with Mouse Trailers. Basically a blue dot (movie clip) trail follows the cursor. The code works but I do not understand why the dotTrails variable is not replaced the next time the function is called. There are 15 blue dots on the screen determined by the "if" statement but why is there not just one? Here is the code. Thanks for helping.








Attach Code

var dotTrails:MovieClip;
var count:Number = 0;// tracks the number of trailers
function fBlueDot(){
count += 1;
duplicateMovieClip(blueDot_mc, "trailer" + count, count);
dotTrails = _root["trailer" + count];
dotTrails._x = _xmouse;
dotTrails._y = _ymouse;
if(count > 15){
count = 0;
}
}
blueDotInterval = setInterval(fBlueDot,100);

View Replies !    View Related
Code Problem With A Mouse Trailer
hi,

I have inserted a code found on the web to create a mouse trailer. all works just fine until I inserted the code found in the fading grid effect. then the mouse trailing effect no longer works.
don't know if it is a depth problem or what? don't really know too much about as, trying to learn........

here is the code on frame 1:

Code:
Text = "art";
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;
};
}
}






then here is the code on frame 20 for the fade grid effect:




Code:
//Declare variables
xspacing = box._width;
yspacing = box._height;
depth = 0;
box._visible = 0;
azcount = 0;
smoothness = 900;
//Calculate positions and values
amH = Math.ceil(image._width/box._width);
amV = Math.ceil(image._height/box._height);
border._height = image._height+1;
border._width = image._width+1;
border._x = image._x-0.5;
border._y = image._y-0.5;
//Create grid

for (var k = 0; k<amV; k++) {
for (i=0; i<amH; i++) {
box.duplicateMovieClip("box"+depth, depth);
cur = this["box"+depth];
cur._x = image._x+(xspacing*i);
cur._y = image._y+(yspacing*k);
depth++;
}
}
//
//
// End of grid
//
//
function fadeOut(startboxnr, speed) {
fadeMC(startboxnr, speed);
}
function fadeMC(mcnr, speed) {
azcount++;
_root["box"+mcnr].onEnterFrame = function() {
_root["box"+mcnr]._alpha -= speed;
if (_root["box"+mcnr]._alpha<=smoothness) {
_root["box"+mcnr].onEnterFrame = null;
continueFade(_root["box"+mcnr], speed);
mcnr += 1;
fadeOut(mcnr, speed);
}
};
}
function continueFade(mc, speed) {
mc.onEnterFrame = function() {
mc._alpha -= speed;
if (mc._alpha<=0) {
delete mc.onEnterFrame;
}
};
}
fadeOut(0, 5);
Any help is greatly appreciated
thanks

View Replies !    View Related
Simple Question Concerning Mouse Trailer
Hello. I am playing around with the Kirupa mouse trailer tutorial, and I am trying to make it so that at different points along a M.C. different pieces of text start following the mouse...a button plays a specific part of the m.c. in which the "trailer code" (pasted below) is, when the user clicks a different button, the playhead goes to a different part of the m.c. that has the same "trailer code" within it, but with different text...Everything is working except when you click the buttons in reverse order a some of the letters from one text are attached the other piece of text. I think I need to clear a variable or something, but am unsure. I know this sounds confusing, but if anyone could help I would appreciate it.
The piece of code is:
delete (Text);

Text = "first text";
letters = Text.split("");
letterformat = new TextFormat();
letterformat.font = "Papyrus";
letterformat.align = "center";
letterformat.size = "8";
spacing = 5;
speed = 3;
for (var LTR = 0; LTR<letters.length; LTR++) {
mc = _root.createEmptyMovieClip(LTR+"l", LTR);
mc.createTextField(letters[LTR]+"x", LTR, LTR*spacing, 10, 20, 20);
with (mc[letters[LTR]+"x"]) {
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
Mouse Trailer Character Spacing
Hi,

I'm fairly new to Flash. I completed the "Mouse Trailer" tutorial and another text animation tutorial on another site. I got both movies to work, but both experience the same display issue.

Whenever I create an actionscript movie that animates text by splitting a text string into an array of characters, the final display of text is not evenly spaced (horizontally) - the spacing between letters is not consistant. None of the actionscript I've seen accounts for spacing between the letters - only spacing between lines and line length.

Does anyone know how to ensure even spacing between the characters? And even if you don't know how to correct it, do you why the spacing would vary between letters.

Thanks!
Kelly

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