1. Home
  2. Computing & Technology
  3. Animation

Flash Cursor Spotlight Revisited II: Masking

By Adrien-Luc Sanders, About.com

7 of 7

After creating the symbol, right-click it and insert the following (copied from the last lesson):

on (rollOver) {
startDrag(“”, true) ;
}

so that the spotlight object follows the mouse around as long as the mouse is inside of the stage area, aligning the mouse cursor to the center of the object. If you try it out, you’ll see that it works just like the other cursor spotlights—just using a different technique.

You can create masks like these in any shape, for any purpose—and even morph them by leaving them as fill objects and using shape tweens.

Explore Animation
About.com Special Features

Stay connected and entertained with reviews on tips on the latest HDTVs, cellphones and more. More >

Easy ways to connect two computers for networking purposes. More >

  1. Home
  2. Computing & Technology
  3. Animation
  4. Flash Animation Tutorials
  5. Flash Cursor Spotlight Revisited II: Masking

©2009 About.com, a part of The New York Times Company.

All rights reserved.