Weve looked at
two ways to create a
very basic cursor-tracking spotlight requiring little knowledge beyond basic Flash; now lets take a look at another, using a more advancedand yet still very easytechnique 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 doesnt quite work the way that you think; instead of creating an entire blocked-out layer and then erasing the cutout area to reveal whats 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, Ill open up the cityscape scene I created for the last two lessons, and modify the document properties to set the stages background color to black.