How to make an objekt follow the cursor in a menu?
Hi everyone!
I`m very new in flashscripting and in scripting what so ever!
I have a large homepage projekt i`ve been working on for a very
long time so now i have most of the peices and animations done,
But i cant script and do interactivity im very novice in that.
So straight to the thing! I wonder how you make an objekt
follow the cursor when you navigate thruegh a menu insted
of the usual that a link highlights on mouseover or change color.
It shall ONLEY apear on mouse over with an infade and as i said
it shall follw the cursor BUT!!! I want it to be a little rubberband
effekt. And as the user takes the cursor away it fades away softly!
I have an almost perfekt example of a swedish homepage that i found.
Check out the pink underline that follows the cursor.
Someone mentioned it could be enterFrame script
with x_mouse and y_mouse but it didn`t work!
But well its as most the scripting i do cause im new in it!
Someone mentioned it could be enterFrame script
with x_mouse and y_mouse but it didn`t work!
But well its as most the scripting i do cause im new in it!
Help!!!
They were right it's only _xmouse and _ymouse
while (2+2 == 4) {
drink ("bourbon");
}
gotoAndStop("bed");
Ok! But i tried and tried but failed and failed and still am!
Hmm so do you have an example of a whole script about
_xmouse and _ymouse ?
and well i dont know if done something
wrong in flash? Maybe mist an instance name
just for an example? But i dubbelchecked
so it must be some error in the code?
It's fairly easy. I guess they are doing somethign liek this
Hi there again! Do you know a script to increase the speed of the objekt that follows follows the mouse? You know the swf you sent me example_smooth_follow_mouse
I tried taking different actions from other swf doks that relates to speed/velocty and pasted it in the swf but i doesn`t work.
i tried this action for example speed = 5;
And!!! Important!!!
In the swf file I´m working on has 2 link menus so i tried to duplikate the script
of follow the mouse but it did`nt work that iether. Seems as if they colide and
onley one of the exactly the same script can work???
Hi, here is the chnaged movie.
I put some comments about the speed in the the code.
Hi again! And thanks again your really saving my future carrer!
I maneged now to make 2 menus as you sent me, but there is a slight error
in the code you sent me. The blueline shows in a short sekond in the very beginning and fades to alpha 0.
And 2 other things i wonder about!
Is it possible that you know a code that can make the line apear exaktly where you put the cursor? For example if you mouse is over the link test3 and the cursor begins there and of course follows the mouse as usual in the way it goes now that im very pleased about.
The second thing! When the line stops att the link you are on if it could just slightly be off balance (rocks little back a and fourth very slightly)untill it stops in exact position. Like a feel of a rubber band.