Flash Script – Cursor Trick 3: Cursor Tracking Effect

By Georgina Laidlaw

Download the sample files here.

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


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

3. Create 3 keyframes as shown below:


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!

No Reader comments



Learn Coding Online
Learn Web Development

Start learning web development and design for free with SitePoint Premium!

Instant Website Review

Use Woorank to analyze and optimize your website to improve your website to improve your ranking!

Run a review to see how your site can improve across 70+ metrics!

Get the latest in Front-end, once a week, for free.