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








Mc To Follow Mouse On X Axis


Hello
Could someone point me in the right direction with this navigation I want to make.
I have searched and see how to make something follow the mouse but I need to do a bit more.

I want the mc to move accross x axis following the mouse and to centre on button when mouse is within a defined area.
The mc will only follow the mouse when the mouse is near the navigation area.
The fla explains it....I hope

Cheers
Brownie




KirupaForum > Flash > Flash 8 (and earlier) > Flash MX
Posted on: 11-18-2004, 11:19 PM


View Complete Forum Thread with Replies

Sponsored Links:

Mouse Follow 1 Axis Only
I got a action script (http://www.flashkit.com/tutorials/Special_Effects/StartDra-Arran_Sc-639/index.shtml) where a movie clip follows my mouse on 1 axis only, this works very fine

But when i move my mouse to another area of the browser the mouse follow does not stop. Is there a possibility to stop the moving???

I hope u understand my problem and I thank u in advance

cU
Daniel

View Replies !    View Related
Mc To Follow Mouse On X Axis
Hello
Could someone point me in the right direction with this navigation I want to make.
I have searched and see how to make something follow the mouse but I need to do a bit more.

I want the mc to move accross x axis following the mouse and to centre on button when mouse is within a defined area.
The mc will only follow the mouse when the mouse is near the navigation area.
The fla explains it....I hope

Cheers
Brownie

View Replies !    View Related
MC Follow Mouse On X Axis Only
I need to know the action script to make a movie clip follow my mouse on the x axis only, you see it used a lot in banners. Any help is appreciated!

View Replies !    View Related
MC Follow Mouse On X Axis Only
I need to know the action script to make a movie clip follow my mouse on the x axis only, you see it used a lot in banners. Any help is appreciated!

View Replies !    View Related
Mc To Follow Mouse Along Y Axis
Basically I have a rectangular MC that I want to have follow the mouse vertically between different menu options. I would love to a add slight resistance at some point, but could anyone direct me to some tutorials for this kind of behavior? Thanks in advance!


Nate

View Replies !    View Related
X Axis Follow Mouse W/ Easing Out - - Wtf?
Could someone please help me create an arrow that follows the mouse, but can only be moved on the x axis and gradually slows down when following the mouse?

View Replies !    View Related
How Do I Get An Object To Follow The Mouse Along The X Axis?
Hi All,

I was wondering if anyone could help me ...

Im trying to have an arrow pointing down that follows the mouse along the x axis....however...i only want the arrow to move along this axis whenever the mouse is over a certain part of the stage...

Like the arrow thats used here: http://www.superhere.net/

Can anyone help??

Cheers!!
[Edited by dvdvault on 08-04-2002 at 07:24 AM]

View Replies !    View Related
Oject Follow Mouse On X Axis
Hi, I'm trying to create a navigation bar similar to that of www.marion.com.
I have tried to code a rectangle box to follow the mouse, but with no luck.
I'm using CS3, and help would be greatly appreciated!

View Replies !    View Related
Script To Make An Object Follow The Mouse On The X-axis, But With Delay?
Anyone know of a tutorial to create an shape that will follow the mouse on the x-axis but with a little delay.

Like on the subnavigation on this page...
http://data.telephonetics.com/beta/index2.html

thanks

View Replies !    View Related
Follow On X-axis
How would I go about getting a movie clip to stay on a certain point on the x-axis, but it follows the mouse?

View Replies !    View Related
How To Make A Mc Follow Cursor On _y Axis
I was wondering how I would get a mc to follow the cursor along the _y axis. I want to have a mc trail the cursor as it goes across the menu.

This is probally pretty basic but I am just starting to step out of basic flash and consentrating on learning more advanced script and such. My first flash site is http://www.thegermanfolks.com.
Not really much flash just a basic menu done in flash. I like flash for its efficiency in optimization and not so much for fancy animations although I do intend to become more advanced in flash. I am already working on v.3 for the German Folks and it is going to be pretty advanced. That is part of the reason for getting on this forum and asking questions.

One day I hope to answer some questions for someday.

Sorry I am rambling this is my first post here and I have a lot of respect for designers and programmers. I currently only have a degree in visual communications and also working on a CIW degree.

thanks,
Dusty
[Edited by GambleForFood on 11-15-2001 at 04:40 AM]

View Replies !    View Related
Mouse Follow/stopfollow After Mouse Leaves Object (with Ease)
well, i think the title covers me entirely, i would like some help with a script.
The problem is, i have a scene with objects that at first they are static, when the mouse comes in and makes a move-over the scene and some objects,i have assigned multiple collision to the objects, i want when the mouse moves over a object, the object to follow the mouse,while colliding to all other objects and after a while i would like as the mouse moves away, the following to stop and the objects to return to its original spot with ease.

I know that this is a big one, but i would like some help if i could get

View Replies !    View Related
Detect Mouse _x & _y Attach Specific Clip And Have It Follow Mouse
I'm trying to make a clip that will have another clip attached (eventually it'll be a mask) when you roll over it. I want the mouse positon to be determined on rollover and a different clip (with different registration point) to be attached depending on which quadrant you rollover first. IE- you rollover the lower left quadrant of the mc first so an mc with an upper right registration point is attached and follows the mouse.

basically I want it to look like you're pulling a mask from out of nowhere onto the main mc from whatever corner you start on... (make sense?)

i'm trying to reconstruct what you see here (http://www.mullerphoto.com/)
this is the first baby step!

anyhow, here's my AS and i'll attach the .fla any help is great! I have the actionscript dictionary and am not afraid to use it, I just need help with the mechanics of how to actually do this (i.e.- which methods, properties, etc. to utilize) thanks!


Code:
leftfunction = function(){
if (patch._ymouse <= 100){
llowerfunction;
}else{
//this function starts the maskclip coming in from the upper left with a lower right reg point
_root.patch.attachMovie("lowerright", "lrclip", 1);
lrclip._x = _root.patch._xmouse;
lrclip._y = _root.patch._ymouse;
}
}

llowerfunction = function(){
//this function starts the maskclip coming in from the lower left with an upper right reg point
patch.attachMovie("upperright", "urclip", 1);
urclip._x = patch._xmouse;
urclip._y = patch._ymouse;
}

rightfunction = function(){
if (patch._ymouse <= 100){
rlowerfunction;
}else{
//this function starts the maskclip coming in from the upper right with a lower left reg point
patch.attachMovie("lowerleft", "llclip", 1);
llclip._x = patch._xmouse;
llclip._y = patch._ymouse;
}
}

rlowerfunction = function(){
//this function starts the maskclip coming in from the lower right with an upper left reg point
patch.attachMovie("upperleft", "ulclip", 1);
ulclip._x = patch._xmouse;
ulclip._y = patch._ymouse;
}

_root.patch.onRollOver = function() {
if (patch._xmouse <= 150){
leftfunction;
}else{
rightfunction;
}}

View Replies !    View Related
[F8] Follow The Mouse - Stop Mc At Location Of Mouse On Click
I have an mc that follows the mouse a certain distance on the x in both directions and then eases to a stop when the mouse gets a certain distance.

What I need to do is to have the mc stop on button click at the x position it is at on click. Then, when another button is clicked the animation continues from it's stopped location to the new mouse location. All with easing of course.

Here is the code for the mouse tracking:

Code:
onClipEvent (load) {
speed = 3;
}
onClipEvent (load) {
stageWidth = 700;
imageWidth = 615;
}
onClipEvent (enterFrame) {
destx = (stageWidth-imageWidth)*(_root._xmouse/stageWidth)
_x += (destx-_x )/speed;
}

Any help would be greatly appreciated.

View Replies !    View Related
TRIG - MC Follow Mouse Rotate Around Mouse Point
I have read and i think i 'fully' understand (unless it gets more complicated or what not) the trig tutorial, on this site.
no offence i cant remeber who's tut.

i can make a movieclip circle another movie clip,static or moving.

but now, i have a movie clip that follows the mouse pointer when the up key is toggled.

and i want this movieclip to rotate around the mouse point,when the left key is either pressed or toggled, and reverse this movement for the right key.

i have tried a few things for this i can not get it to rotate, it just seems to jitter randomly.

i have tried rotating a completely static MC around mose point which also failed..

any help thanks?

this is the code that makes the clip face the mouse, and move to its position.
its a function called from another function.

its followed from a tut but i do understand it. This is not what im having troublewith,this works.


Code:
myRadians = Math.atan2(_root._ymouse-MYCLIP._y, _root._xmouse-MYCLIP._x);
myDegrees = Math.round((myRadians*180/Math.PI))+90;
MYCLIP._rotation = myDegrees;
_root.yMove = Math.round(_root.yChange/20);
_root.xMove = Math.round(_root.xChange/20);
MYCLIP._y += _root.yMove;
MYCLIP._x += _root.xMove;
_root.yChange = Math.round(_root._ymouse-MYCLIP._y);
_root.xChange = Math.round(_root._xmouse-MYCLIP._x);
}
to make it clear what i want, a MC that will circle the mouse point, when key is down or toggled, this movieclip also needs to be capable of moving towards mouse point on key down or toggle.

Cheers.

View Replies !    View Related
Changing AS So Mouse Follow Is Switched To Mouse Repel?
So I'm using the .fla attached as a basis for an image scroller (thanks TheCanadian!) and I was just wondering what the process would be to invert it so the "follow" MC is being repelled by the mouse, rather than attracted.

Here's the code for quick reference...

"follow" is the MC following the mouse and "bounds" is the area in which "follow" can move freely.


Code:
follow.onEnterFrame = function() {
this._x += (Math.max(bounds._x + this._width / 2, Math.min(_xmouse, bounds._x + bounds._width - this._width / 2)) - this._x) / 5;
this._y += (Math.max(bounds._y + this._height / 2, Math.min(_ymouse, bounds._y + bounds._height - this._height / 2)) - this._y) / 5;
};
Thanks!

View Replies !    View Related
Mouse Axis
I am a user of flash 5 and was wondering how I could program an graphic object to move down in response to the mouse moving up, moving left in response to the mouse moving right, etc. Thank you in advance.

View Replies !    View Related
Mouse Scroll Y Axis Help
hello

i have set up a mouse scroll that pulls a movie left/right according to mouse position on x axis. however, this is on level 1 and uses whole of the movie area, therefore obscuring my buttons that show through from level 0

my question, can i limit the y axis for the mouse action to function with an if statement:

if (y_mouse>300)&&(y_mouse<350) {

therefor, if you are not in this 50 pixel gap the rest of the code will not funtion and my buttons from level 0 will function. will this code work? i ask because i cannot test it for a few days but need to know whether this is what i should do.

thanks

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
Followoing Mouse On Y Axis
Hello,

I am designing a website for my band and am having trouble having a box follow my mouse on the y axis, I have figured out how to have it follow it, but I only want it to follow while it is in the top box thing. I know this might sound confusing, so I have attached the fla, thanks for any help.

Greg

View Replies !    View Related
Following The Mouse On A Slanted Axis...
Hello there,
I have searched the depths of the internet and have not found this questions! So if any body can even add something you might know about it or any ideas please give!

There are many tutorials on Objects folloing the mouse in a vertical and Horiz. form, but what if you want the object to follow the mouse on a slanted path!

I want a Movie clip to move slowly to my mouse when I hightlight a button on the slanted path.

Thanks,
Mr. Indigo

P.S. I know how to setProperty() but moving the Movieclip slowly to the location were the Property is set is the problem!

View Replies !    View Related
Arrow MC Following Y Axis Of Mouse
Hi,

I'm creating an interactive menu in Flash 5. As the user moves the cursor over a line of text a small arrow (movie clip) slides along the Y axis to the left of the menu as a visual aid to show which menu item is being selected.

Now, I've got this working using a small actionscript attached to the arrow:

onClipEvent (enterFrame) {
arrow = _root._ymouse-1-_y;
_y = _y+(arrow/4);
}

This works fine, but I need to change a few of things and being new to actionscripting, I'm at a loss.

Firstly, I need the Y movement of the arrow to stop at the top and bottom of the menu items. At the moment, if the arrow is moved beyond the menu, the arrow keeps moving. I need it to stop at the top item or the bottom item.

Secondly, I want the arrow to appear 'sticky'...so that for instance, if the cursor is over the second line in the menu, the arrow sticks to a location on the Y axis (so it doesn't slide around while the user is selecting a menu item). Once the cursor is moved from the second line to the third, the cursor then slides down until it 'sticks' to the third line. It's hard to explain, but I hope you get the idea.

Finally, I want the arrow's alpha to be 0% if the cursor rolls out of the flash window so it disappears when it isn't needed. Obviously, when the cursor is brought back, the alpha needs to go back to 100% so the arrow 'appears' again.

I've enclosed the flash file so you can see what I've done so far. Any help on this would be really appreciated.

Ste.

View Replies !    View Related
Arrow MC Following Y Axis Of Mouse
Hi,
I'm creating an interactive menu in Flash 5. As the user moves the cursor over a line of text a small arrow (movie clip) slides along the Y axis to the left of the menu as a visual aid to show which menu item is being selected.

Now, I've got this working using a small actionscript attached to the arrow:

onClipEvent (enterFrame) {
arrow = _root._ymouse-1-_y;
_y = _y+(arrow/4);
}

This works fine, but I need to change a few of things and being new to actionscripting, I'm at a loss.

Firstly, I need the Y movement of the arrow to stop at the top and bottom of the menu items. At the moment, if the arrow is moved beyond the menu, the arrow keeps moving. I need it to stop at the top item or the bottom item.

Secondly, I want the arrow to appear 'sticky'...so that for instance, if the cursor is over the second line in the menu, the arrow sticks to a location on the Y axis (so it doesn't slide around while the user is selecting a menu item). Once the cursor is moved from the second line to the third, the cursor then slides down until it 'sticks' to the third line. It's hard to explain, but I hope you get the idea.

Finally, I want the arrow's alpha to be 0% if the cursor rolls out of the flash window so it disappears when it isn't needed. Obviously, when the cursor is brought back, the alpha needs to go back to 100% so the arrow 'appears' again.

I've enclosed the flash file so you can see what I've done so far. Any help on this would be really appreciated.

Ste.

View Replies !    View Related
Mouse Ease On Axis
I looked at the 'mouse follow with easing' tutorial. http://www.kirupa.com/developer/mx/followease.htm

Can someone help me with modifying the code. I'm not sure how to restrict it to one axis and set boundaries. I only want it to move along the x-axis.


Code:

onClipEvent (load) {
_x = 0;
_y = 0;
speed = 5;
}

View Replies !    View Related
Arrow MC Following Y Axis Of Mouse
Hi,
I'm creating an interactive menu in Flash 5. As the user moves the cursor over a line of text a small arrow (movie clip) slides along the Y axis to the left of the menu as a visual aid to show which menu item is being selected.

Now, I've got this working using a small actionscript attached to the arrow:

onClipEvent (enterFrame) {
arrow = _root._ymouse-1-_y;
_y = _y+(arrow/4);
}

This works fine, but I need to change a few of things and being new to actionscripting, I'm at a loss.

Firstly, I need the Y movement of the arrow to stop at the top and bottom of the menu items. At the moment, if the arrow is moved beyond the menu, the arrow keeps moving. I need it to stop at the top item or the bottom item.

Secondly, I want the arrow to appear 'sticky'...so that for instance, if the cursor is over the second line in the menu, the arrow sticks to a location on the Y axis (so it doesn't slide around while the user is selecting a menu item). Once the cursor is moved from the second line to the third, the cursor then slides down until it 'sticks' to the third line. It's hard to explain, but I hope you get the idea.

Finally, I want the arrow's alpha to be 0% if the cursor rolls out of the flash window so it disappears when it isn't needed. Obviously, when the cursor is brought back, the alpha needs to go back to 100% so the arrow 'appears' again.

I've enclosed the flash file so you can see what I've done so far. Any help on this would be really appreciated.

Ste.

View Replies !    View Related
X &y Axis Change On Mouse
I'm looking for a site. well, particularly an .fla to go over. of a site that is kind of a giant canvas. but you only see a portion of it at any given time. and depending on which edge of the site you move your mouse too [top, left, etc] it scrolls over to show you a different portion of the giant canvas, sort of in an accelerated manner.

somewhat hard to explain but I think I got it.
Ive written enough to go left or right. or up and down. but not diagonal or smoothly any other way. any help is muich appreciated.

View Replies !    View Related
Mouse Follow With Delay When Mouse Over In Certain Area - HELP
Hi actionscript-gods!!!

I got a navigation bar and want a followmouse-object slide along on top of it with a little delay (delay not built in yet) as i move around my mouse in the navigation area. (in adition the object fades out when you don't move the mouse - but that part works and is not important here) My problem is that the object simply won't follow the mouse!!! I hope someone can help me...

Code explanations:

followmouse object = fader
container movie for fader = fadercontainer

Code for first image in _root:

var timeOut;
var maxTime = 2000;
function fadeUp () {
with (fadercontainer.fader) {
if (true == mouseMoved) {
if (_alpha<101) {
_alpha += 10;
} else {
mouseMoved = false;
timeOut = getTimer()+maxTime;
}
}
}
}

Code for fader:

onClipEvent (load) {
_alpha = 0;
function fadeDown () {
if (_alpha>0) {
_alpha -= 10;
}
}
}
onClipEvent (enterFrame) {
if (true == mouseMoved) {
_root.fadeUp(this);
setProperty ("_root.fadercontainer", _x, "_root._xmouse");
} else {
if (getTimer()>_root.timeOut) {
fadeDown();
}
}
}
onClipEvent (mouseMove) {
if (_root._ymouse>66 && _root._ymouse<110 && _root._xmouse>172 && _root._xmouse<689) {
mouseMoved = true;
}
}


Thanx in advance,
Ralf

View Replies !    View Related
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
Cant Get Hide Mouse Follow Mouse To Work
I used a tortorial on making mouse cursors and mine will follow the mouse until I click one button and then it sticks and does not move, but my invisible mouse is active you just cant see where your draging it...!!!

any tips??

View Replies !    View Related
Flash 5 MC Follows Mouse On X Axis But Needs Taming.... Help?
can anyone help with this problem i have?

i am using flash 5

i have made a MC follow the mouse along the X axis which works really well. BUT when the mouse goes close to the edge of the SWF boundries the MC follows it right to the edge, which looks messy.

i would like to know how to code a bit of script which will allow me to set up some form of boundry box round the edge of the SWF file so when the mouse goes to the edge the MC following it would stop at a certain point. Can this be done?

it would also be cool if when the MC hits this boundry it could bounce back a little bit, just so it doesn't stop in a nasty way.....


any help on this would be fantastic.

i've included the fla file too.

View Replies !    View Related
Help With 3d Rotating Nav (depth, Axis, Mouse Etc)
ok I am not even sure where to begin on this one...I am sure I have seen one like it before used on a website but can't remember where.
anyway I want something like this http://www.flashkit.com/tutorials/3D...-801/index.php

where the mouse controls the depth and axis of the buttons.
what I want is this to be the menu system, where the buttons are sort of floating, rotating....and if you mouse over a button, it rotates to the front, it should get bigger when near the front and the back buttons smaller, if clicked on a sub mav should pop out...is there a fla out there or tutorial better than the flower one that has depth etc?

View Replies !    View Related
X+Y Axis Scroll, Reacting To Mouse?
Hi there

To make a long story short, i have a scene, with a huge movieclip on it, lets say that movieclip is called "box". Now i want to be able to navigate around with my mouse... Not by clicking, or dragging scrollbars or the actual movieclip, but like any other scrolling image gallery, when i move my mouse to the left of center, the movieclip moves to the right. If i move up, the movieclip moves down.
I am able to make this work on either the Y or the X axis, but when i try to combine those two, i doesnt work as intended.
If you dont know what i mean, here is a link of the behavior i want

http://www.flashimagegallery.com/pics/artwork/

Click on the sketch of a guy who is number two, in the second row.
Actually it moves the wrong way when you move the mouse, but that should be easy to change with some minus characters.

Can anyone help me out figuring this code out? Ive searched for days, trying to find what im looking for, and ive even posted on 2 other forums before i found this one, but i havent got a reply yet, which im hoping to get here, cause this forum seems to be a bit more pro, that the others ive used.

Thanks in advance

View Replies !    View Related
Looking For Tutorial On Menu Where Mc Follows Mouse On Y-axis...
I'm looking for a tutorial or firsthand knowledge on adding a movie clip to a menu that follows the mouse along the y-axis -- so basically when a user rolls over a link in the navbar, the mc goes down to the same y-coordinate.

The reason I can't find it is that I don't know what name that kind of menu goes by online, I've tried so many combinations. If anyone can point in the right direction, I would be grateful.

THANK YOU IN ADVANCE!!!!

View Replies !    View Related
Help With Contained X Axis Mouse Avoid
i hope someone can help, i am stuck and i am a fairly mid level actionscripter so this is something i haven't done before.

i have a little crab movie clip on the bottom of the ocean floor in a scene.
i want the crab clip to avoid the mouse on the x axis only and i want it to be contained to the edges of the movie. i have found info on doing this on both and x and y axis and without being contained. i have also found info on this but without any gravity or friction to it which we need.

any help is much appreciated!

thanks,
sodyPop

View Replies !    View Related
Rotate On Axis With Mouse Easing
I have a mc that I want to continously rotate, I want it to rotate in whatever direction the mouse is from the center of the mc. If the user pulls the mouse out I would like for it to speed up and slow down accordingly.

If this is not possible, I wouldnt cry.

Any way when the user goes over a desiginated area I would like for the motion to stop until they pull away again.

How would I go about doing this.

I've seen this thread but don't understand where to attach the script, and I also need the stopping script.

http://www.kirupa.com/forum/showthre...mouse+rotation


Case

View Replies !    View Related
Setting Limits For Following The Mouse On The Y-axis
hey there i've been looking through the forums and online and i can find stuff that is close to what i want but not exactly. i have a face and i have the eyes following the mouse and would like the eyelids to move as well but not move past a certain point. i've tried doing if-else but as you'll see my coding needs improvement, lots. i have attached two versions. one that has easing which i would love to include but i will settle for just limiting the movements. if anybody could help me i'd greatly appreciate it.

thanks!

duke

View Replies !    View Related
Mouse Responding Axis Motion
Dear users.
A couple of years ago I stumbled upon a site of a female dj with a dragon tattoo.
there was a banner on the top of her website that, when you moved your mouse horizontally - anywhere on the site - the picture in the banner would change.
actualy, it was a movie that, if you move your mouse from left to right, would be played but when you stop moving the mouse, the movie would freeze as wel.
it was both forward and backward-moving.
I've been looking very hard for the same thing, but all I can find is those backgrounds that scroll from left to right as you move your mouse.

so it's a little like this tutorial http://tutorialoutpost.com/count/142 exept that it doesn't switch between the pictures, but a movie is being played forward and backward (imagine scratching but with a video instead of a record) when you move your mouse from left to right.

anybody seen a tutorial on this one? thankx !
El Camino

View Replies !    View Related
Looking For Tutorial On Menu Where Mc Follows Mouse On Y-axis...
I'm looking for a tutorial or firsthand knowledge on adding a movie clip to a menu that follows the mouse along the y-axis -- so basically when a user rolls over a link in the navbar, the mc goes down to the same y-coordinate.

The reason I can't find it is that I don't know what name that kind of menu goes by online, I've tried so many combinations. If anyone can point in the right direction, I would be grateful.

THANK YOU IN ADVANCE!!!!

View Replies !    View Related
Help With Contained X Axis Mouse Avoid
i hope someone can help, i am stuck and i am a fairly mid level actionscripter so this is something i haven't done before.

i have a little crab movie clip on the bottom of the ocean floor in a scene.
i want the crab clip to avoid the mouse on the x axis only and i want it to be contained to the edges of the movie. i have found info on doing this on both and x and y axis and without being contained. i have also found info on this but without any gravity or friction to it which we need.

any help is much appreciated!

thanks,
sodyPop

View Replies !    View Related
Movie Clip Following Mouse Y-Axis | Urgent Help
Hello,

This is my first post, but I hope to make use of these forums.

My question I hope I can explain in enough detail so you understand what I'm trying to do.

I'm doing work for a temporary flash website for a client. The idea is that the navigation runs up and down (vertical) and to the left of it, the logo is placed.

Now, the logo has a green arrow on the right side (pointing to the navigation) and when the user mouses over the navigational links, the idea is that the logo would follow the cursor movements and if the mouse stops over one of the links, the logo would ease to the left of that link (arrow pointing at link).

Attached, is an image of what the navigation and logo placement looks like. I've blacked out the logo for now as I'm not able to reveal who the client is.

I'm not too fluent in ActionScript to pull this off myself and so hope to find help here.

I hope I made sense.

An example to some degree can be seen here:

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

Where if you pretend it can't go left and right, but only up and down. Also, the logo wouldn't be directly on the cursor. The "active" area would only be the Navigation Links. When the mouse is over them (hidden movie clip to activate that?).

Does that make sense? I know exactly what I need to do, it's just hard to explain without being TOO wordy.

View Replies !    View Related
On Mouse Press + Y-axis Movement, Activate Movieclip
Hey, Im pretty new to actionscripts and trying to figure out how to solve this:

I want to activate movieclip1 when 2 conditions are filled; pressing down a mouse button and dragging the mouse in y-axis (moved more than 10 pixels up). If only the mouse down condition is filled, movieclip2 will get activated.

Im trying to pull it off with something like this but cant figure out how to make the onMouseMove listen for only the y-axis position change.

onMouseDown = function (){
movieclip1.gotoAndPlay(1);
onMouseMove = function (){
movieclip2.gotoAndPlay(2);
}
}

onMouseUp=function(){

onMouseMove=null;
}


Is this all wrong?

View Replies !    View Related
Help With Mouse Controlled Object ---StartDrag Command For 1 Axis Only--- Tutorial
I am quite new to actionscripting and would greatly appreciate your help.
I am using FLASH 5---

I used the tutorial about StartDrag command for 1 axis only by 'arran@arranschlosberg.com' which was very useful.

I would like to place a mouse controlled object into a movie that has already got a lot of actions in it.
When I put the mouse controlled object as well as the code to control it - into my other movie , the movie only played the first 2 frames --- as it was looping as specified in the tutorial. I would like to have my movie play correctly yet also have the mouse controlled object in my movie(which most probably be in a MC.

How can i put a MC into a new movie that works with mouse controlled objects correctly.

What am I doing wrong?

View Replies !    View Related
Follow Mouse..... Help, Please
Hi,

I want to try this effect. Can anyone help me?

I have circular buttons.
I change colors of the buttons on mouse over. I also have a bigger circle(unfilled) which sits on one of the buttons. Now, If I move my mouse on any other button, the bigger circle should move and sit on the button where the mouse is pointing. (I don't want the bigger circle to trace the mouse throughout the screen.)

How do I do this? I am new to scripting in Flash. Does it require lot of scripting?

Abhigna

View Replies !    View Related
Mouse Follow
Hey,

How can i make an arrow follow my mouse on a vertical line. It can only stay attached to that line though?

L8

View Replies !    View Related
Mouse Follow
I have a MC that contains the onClipEvent (enterFrame)action
along with script for a rectangle to follow the mouses position along the x axis. This works, but how do i set parameters to keep it within a box and only follow the mouses position when it enters that box? Hope thats not too confusing. Basically i want the rectangle only to move when the mouse enters the specified hotspot and restrict the rectangles x movement to this hotspot. All help is creatly appreciated!

View Replies !    View Related
Follow Mouse?
hello,

I want my mouse, when rollovered a image, to show text about it and follows it around....., how can I do this?!?! thanx!

View Replies !    View Related
Follow Mouse Help :(
Hi

I want to make a movie clip follow the cursor but only in a vertical direction and the item must not be able to move horizontal. If the cursor moves from left to right nothing should happen until the cursor is moved up or down.

I have flash 5, can anyone help?

thanks

View Replies !    View Related
Mouse Follow?
How do I make one of those things that follow the mouse around when you move around the flash? Mouse trail type thing that flys around the mouse... or whatever.. ha... sorry im not very descriptive.

View Replies !    View Related
Mouse Follow Nav Bar
Pls help

I have this arrow which i wish to move from left to right according to the mouse location and stop following when the mouse moves to a certain location. Therefore I tried adding the following to the arrow symbol


Code:
onClipEvent (enterFrame) {
startDrag(getProperty(_x, _y), true, 0, 389, 550, 389);
}
However, since I used the startDrag script but didn't end with a stopDrag script, I cannot do anything in my movie as it is still dragging. So I thought of changing it to the following:


Code:
onClipEvent (enterFrame) {
startDrag(getProperty(_x, _y), true, 0, 389, 550, 389);
if (_x <= 379) {
stopDrag ()
}
}
But now the arrow does not move but I can click on buttons and such. Can anyone please help me modify it so that it works but does not do anything to my other objects?

Thanx a milliion!

View Replies !    View Related
Follow Mouse
ahhhhh, I really need help. I want a button, when rolled over, will have a text box follow the mouse, but when you rolled out the box stops following the mouse and it disappears. any help is appreciated!

View Replies !    View Related
Follow Mouse FX
Hi folks;

i hope you can help me out on this. I'm currently develloping a new menu for my website and i want some nice animation in it.

This is what i want to do: I have a trusstower and sleeveblock. This sleeveblock should "follow" the mouse (but only up and down!!) as the user moves the mouse from topic to topic.

So, can I combine the StartDrag script with a motionguide? How would you do it?

Thanks in advance
sentencedfan

btw. if you wanna know, how the menu looks like now, come to http://www.fivestyle.de

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