1. Computing & Technology

Discuss in my forum

Flash Cursor Spotlight Revisited II: Masking

By , About.com Guide

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.

©2012 About.com. All rights reserved.

A part of The New York Times Company.