Add a mask layer
Using a mask layer provides a simple way to selectively reveal portions of the layer or layers below
it. Masking requires making one layer a mask layer and the layers below it masked layers.
You'll use the rectangular shape on the Stage to mask part of the road graphic and animation so
that the animation fits better on the Stage.
On the Stage, with the Selection tool selected, click the rectangular shape below the road.
1.
Drag the shape straight up and align the left edge of the shape with the left edge of the road.
2.
Right-click (Windows) or Control-click (Macintosh) the Mask layer in the Timeline and select
3.
Mask from the context menu.
The layer converts to a mask layer, indicated by a blue diamond-shaped icon. The layer
immediately below the layer is linked to the mask layer. The masked layer's name is indented,
and its icon changes to a blue layer icon.
In the Timeline, drag the Road layer to the Mask layer, placing it below the Car layer.
4.
The mask layer and the layers it masks are automatically locked.
To view the mask effect, select Control > Test Movie.
5.
When you finish viewing the mask effect, close the SWF file window to return to
6.
your document.
Add a guide layer
So far you've learned about regular layers and mask layers. The third type of layer is a guide layer.
You use guide layers to hold content that you don't want to appear in your published or exported
file. For example, you could place instructions to others working on your document on a guide
layer. As you take lessons in Flash, you'll notice that many of the lesson FLA files contain
placeholders, which indicate where to place a Stage object, on guide layers. You'll create a guide
layer now.
In the Timeline, select the Background layer, then click the Insert Layer button to create a
1.
new layer.
Name the new layer Notes and press Enter or Return.
2.
Right-click (Windows) or Control-click (Macintosh) the Notes layer and select Guide from the
3.
context menu.
An icon next to the layer name indicates that the layer is a guide layer.
With the Notes layer still selected, click the Text tool in the Tools panel. Then, in the area of
4.
the Stage above the car and road, enter Production note: Animation with no stop (); actions
loop by default.
Save your document and select Control > Test Movie.
5.
No content that you added to the guide layer appears in the SWF file window.
When you finish viewing the SWF file, close the window to return to the document.
6.
Add a guide layer
45
Need help?
Do you have a question about the FLASH MX 2004-LEARNING FLASH and is the answer not in the manual?
Questions and answers