Masked layers can be used to "light up the night."
When a mask layer object passes over a masked layer object, the hole created
by the object shows only the color of the masked layer. By using a duplicate
of a masked layer along with a dark filter, you can have a nighttime scene
appear t be lit up with a spotlight on a masked layer.
Start a new movie in Flash.
Add three new layers by clicking on the Add Layer icon beneath the layer
column. Rename the four layers in the following order from top to bottom (double
clicking the layer name then retype the names below:
Make sure you click on the drop-down menu and choose HEX as the color mode
Hex Values For
Project Color 1
Project Color 2
Project Color 3
Project Color 4
Project Color 5
You will start working on the Prison Layer. Lock the three other layers
by clicking on the lock icon for that particular layer.
Click in Frame 1 of the Prison Layer. Draw the prison building using three
rectangles. Use a light tan from the movie's palette for the building.
Create a cell window. The cells are rectangles colored with the palette's
orange background; black strokes are used for the borders and bars.
After creating a single cell window, select it and press F8 to turn it into
a graphic symbol. Use the symbol instance of the cell window for the rest
of the cells in the drawing.
The large smokestack is colored with the silver gradient from the standard
swatches. Use a 12-point black Verdana font to label the smokestack and cell
Click on the Prison layer to select the entire layer. Select Edit>Copy.
Click on the Prison Duplicate layer (make sure you unlock it) and click
on the stage. Select Edit>Paste In Place. You should have an exact duplicate
of the Prison layer.
Lock both the Prison and Prison Duplicate layers.
Create the Dark Filter Layer-The purpose of a filter is to change the tint
of a scene without covering it up. To create a filter in Flash 5, use a layer
of color with less than 100 percent alpha and place it above the layer you
want to filter. Follow the steps below to add the filter.
For this movie, use the darkest color other than black in the movie
palette (the dark color you customized in the color palette). In the Mixer
palette, drag the alpha slide to 50 percent. Select the filter color for
both border and fill colors.
Click on the Dark Filter layer, and using the Rectangle tool, drag a
rectangle over the entire stage. Effectively, you have now provided a
night filter for the bottom layer.
Create the Mask Layer-The last operation is to create the mask layer and
set the masking object into motion.
Click on the Mask layer and press the right mouse button. The context
menu appears. Select Mask. The Mask layer truly becomes a mask layer.
Using the Oval tool, draw a circle with a 52-pixel diameter using the
Info too values of H=52, W=52. To open the Info Panel click on Window>Panels>Info.
Use any color you want for the circle because it serves solely as a "peephole"
and has no color at all. Once the circle is drawn, select it and press
the F8 dye to transform it into a graphic symbol. Select Graphic as the
behavior and label it searchlight. Click on the OK button when you've
Click in Frame 1 of each of the three layers other than mask and insert
Keyframes on all three on Frame 110. Lock the layers again.
Insert KeyFrames in the frames indicted below on the Mask Layer (except
in Frame 1, which automatically has one) and position the instance of
the circle in the indicated position (using the Info Panel). Insert Motion
tweens in the KeyFrames specified as well.