Article

Home » Design and Layout » Flash Tutorials » Flash Script - Cursor Trick 3: Cursor Tracking Effect

About the Author

SitePoint

View all articles by SitePoint...

Flash Script - Cursor Trick 3: Cursor Tracking Effect

By SitePoint

April 28th, 2003

Reader Rating: 4.5

Download the sample files here.

1. Create a movieclip from any object. I used a circle.

1065_tool1

2. Give the movieclip instance a name. Here I've used "circle1".

3. Create 3 keyframes as shown below:

1065_tool2

4. In the first key frame, use the action:

startDrag ("str1", true);

5. In the second key frame apply the action:

count = count + 1;
if (count > 10)  
{ count = 1 }  
duplicateMovieClip ( "str1","str"&count, count );

6. In the third key frame, insert the action:

gotoAndPlay (2);

7. Bravo! You've made your own cool cursor tracking effect!

If you liked this article, share the love:
Print-Friendly Version Suggest an Article

Sponsored Links

Rate This Article

  • 1
    Poor
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
    Great

Comment on This Article

Have something to say?

Post A Comment

You need to be a member of the SitePoint Forums to comment on this post. Sign Up

Already a member? Post using your SitePoint Forums account: