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
Your Ad Here

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:

image 3

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
Thank you for voting.
Rate this Materials:
Bad 
1 2 3 4 5 Excellent
Share print this page subscribe to newsletter subscribe to rss

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 & Swish: Most Popular Materials | Fresh Materials | More Flash Tutorials at FlashPerfection.com

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

Captcha