Our Flash tutorials provide you with step-by-step instructions on how to create beautiful Flash animations and integrate them into your website.  Home Flash & Swish Flash Tutorials Cursor Follower

Cursor Follower


1. To begin with, make a flash document. Set the size to 300×300 pixels.

Place on the root stage a movie clip.

Go to Insert -> New symbol -> Movie Clip, name it haircross.

With the line tool, draw a cross:

image 1

2. Drag&Drop the movie clip from the library (windows -> Library) on to the main stage, and give the movie clip an instance name: mc1.

image 2

3. Now, place the following script in the first frame of the main stage:

Cursor Follower

speed = .9;
setInterval(CursorMovement, 40);
function CursorMovement() {
mc1._x = speed*(mc1._x-_xmouse)+_xmouse;
mc1._y = speed*(mc1._y-_ymouse)+_ymouse;
}


Author's URL: Stilva.com
Final results of our readers
New!
Passed through all the steps? Share your result!
Your result will be premoderated.
Please make sure you choose the right image.
 
 



Captcha

*Required fileds
Our Flash tutorials provide you with step-by-step instructions on how to create beautiful Flash animations and integrate them into your website. More Flash Tutorials: Featured Materials | Fresh Materials | More Flash Tutorials at FlashPerfection.com

No comments yet...
Add comments to "Cursor Follower"

Captcha