Flash Follow Mouse Tutorial
5 posts
Page 1 of 1
Hi All
Here is a Very simple Tutorial on HOW TO MAKE A MOVIE CLIP FOLLOW THE MOUSE
![Image]()
1. Create a new empty Flash Document
2. Add a Picture or anything to the Flash Library then drag it out onto the Flash Stage and convert it too a MOVIE CLIP (Select it and Press F8 ) then in the dialog box that pops up Choose Movie Clip and click OK.
3 Click on the Object on the Stage and Press F9 to open the Actionscript window for the Movie Clip and paste this code in.
The code above is really self explanatery
i have used the Codenstuff Gif for my Movie clip cooll;
Download the attachment and check it out, where ever you move your Mouse it will follow
Happy Mouse Following wahooo;
Chris
Here is a Very simple Tutorial on HOW TO MAKE A MOVIE CLIP FOLLOW THE MOUSE

1. Create a new empty Flash Document
2. Add a Picture or anything to the Flash Library then drag it out onto the Flash Stage and convert it too a MOVIE CLIP (Select it and Press F8 ) then in the dialog box that pops up Choose Movie Clip and click OK.
3 Click on the Object on the Stage and Press F9 to open the Actionscript window for the Movie Clip and paste this code in.
Code: Select all
Then Press CTRL+eNTER TO RUN itonClipEvent (load) {
_x = 0;
_y = 0;
speed = 8;
}
onClipEvent (enterFrame) {
endX = _root._xmouse;
endY = _root._ymouse;
_x += (endX-_x)/speed;
_y += (endY-_y)/speed;
}
The code above is really self explanatery
i have used the Codenstuff Gif for my Movie clip cooll;
Download the attachment and check it out, where ever you move your Mouse it will follow
Happy Mouse Following wahooo;
Chris
You do not have the required permissions to view the files attached to this post.
Hello Hungryhounduk,
In my school's website, there were two eyes that followed my mouse. I wondered how it is done. But now you've scared away my wonders. lol. Can this be done in Visual Basic? Please reply!
Thank you.
In my school's website, there were two eyes that followed my mouse. I wondered how it is done. But now you've scared away my wonders. lol. Can this be done in Visual Basic? Please reply!
Thank you.
Hi Usmann55
yes i am sure it can be done in VB, in fact i think there was a post somewhere on here that showed you how to do it, but i might be mistaken
Chris
yes i am sure it can be done in VB, in fact i think there was a post somewhere on here that showed you how to do it, but i might be mistaken

Chris
i think i saw something like eyes follow the mouse i think it was html + js and yes there is a way in vb i will just try and get that for you.
simple but good 
this was one of the first things I did. And lewis, yeah, it will have been HTML + JavaScript.

this was one of the first things I did. And lewis, yeah, it will have been HTML + JavaScript.

5 posts
Page 1 of 1
Copyright Information
Copyright © Codenstuff.com 2020 - 2023