1. Home
  2. Computing & Technology
  3. Animation

Flash Cursor Spotlight Revisited II: Masking

By , About.com Guide

1 of 7

We’ve looked at two ways to create a very basic cursor-tracking spotlight requiring little knowledge beyond basic Flash; now let’s take a look at another, using a more advanced—and yet still very easy—technique called Masking. Masking in general means to cover/obscure something; flash uses Masking layers that allow you hide layers beneath the mask and only reveal the areas that you choose. These Masking layers can be animated, as they consist of objects just like any other shape or symbol; they can be shape or motion tweened, and have ActionScripts applied to them.

It doesn’t quite work the way that you think; instead of creating an entire blocked-out layer and then erasing the cutout area to reveal what’s beneath, instead you create an object in the shape of the cutout. The only parts of the layers beneath that are visible will be the parts underneath that object. Everything else will be replaced by the base document color of the stage.

So with that in mind, I’ll open up the cityscape scene I created for the last two lessons, and modify the document properties to set the stage’s background color to black.

Explore Animation
About.com Special Features

Holiday Central

What to eat, where to go, fun things to do and how to save money on the perfect gifts. More >

Family Tech Center

Stay connected and entertained with reviews on tips on the latest HDTVs, cellphones and more. 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.