Flash Tutorials Animated Masks
August 1, 2008 3:08 pm Uncategorized![]()
This tutorial shows you how to make a simple animated Mask in Flash. A Mask is an object which hides something. In Flash Masks are used with layers and they provide a simple way to selectively reveal portions of the Layer or Layers below. Masking requires making one Layer a Mask Layer and the Layers below it become only partly visible or masked.
In the example below the top Layer has a circle which has been animated. This is the Masked Layer and you can see through this circle to the Layer below:
My Example: Download the Flash file Beg 006a
Flash Movie with an Animated Mask.
Click by Click: If you would like to view this tutorial without all the notes: Click by Click
Cross Ref: There is another tutorial explaining how to create a Mask which is attached to the movement of the Mouse. See: Masks Attached to the Mouse
Step One: Setting up the Document
- Open a New Flash Document: File > New (Ctrl N)
- If the General Tab is not selected, select it:

- Select Flash Document:

- Click: OK
- Go to: Modify > Document(Ctrl J)
- Set the size. Mine is: 550 x 170px
- If you wish select a: Background colour. I set mine to: White
- Click: OK
Note: You should now be able to see a new Flash document.
Step Two: Creating the Text
- If the Timeline is closed, Open it: Window > Timeline(Ctrl Alt T)
- In the Timeline re-name Layer 1 to: Background
- Select your Text Tool:

- Click on the Stage and type: Animated Mask(or whatever you want)
- Select the Selection Tool:
- If the Property Inspector is closed, open it: Window > Properties > Properties(Ctrl F3)
- If your text is not selected: Select the Text
- In the Property Inspector check that the text is: Static Text
- Select a: Font, Colour or Style(ignore size)
- Select the Free Transform Tool:

- Drag the handles so that the text just fits the Stage: Enlarge Text
Rename the Layer to Background.
My text.Note: As an alternative to typing you could do a drawing or even import a photo.
Selecting Static Text.
My Font settings:
Step Three: Creating the Circle”s Colour
The gray colour of the circle is actually a separate object to the actual circle! This is because the circle is actual a Mask and a Mask is a transparent shape.
- Select the Rectangle Tool:

- Draw a rectangle slightly bigger than the Stage: Draw a Rectangle
- Return to the Selection Tool:

- Click the fill of the rectangle: Highlight Rectangle Fill
- Select a Fill Colour:

- Save your file : File > Save(Ctrl S)
Note: Sometimes the Rectangle Tool hides under the PolyStar Tool:
The rectangle”s fill goes “Dotty” when selected.
I selected a gray: #666666
Important: The colour of the rectangle fill must be different to the Movie”s background colour!
If a second background colour is not made you would not see the shape of the circle. Have a look at the Movie Again:
My Example: Download the Flash file Beg 006a
The gray rectangle becomes masked by the circle.
Step Four: Creating the Circle Symbol
The circle is animated using a standard Motion Tween. This means that you need to create a symbol to Tween.
- In the Timeline lock the Background Layer:

- Create a new Layer by clicking on the Insert Layer Button:

- Name the Layer: Mask
- Select the Oval Tool:

- Drag out a large: Circle
- Select the Selection Tool:

- Select the circles: Stroke(outline)
- Delete the Stroke by pressing: Delete
- Select the: Circle

The circle”s now selected.Note: If the circle is not the correct size use the Free Transform Tool
to change it”s size. Don”t forget to return to the Selection Tool: 
- Go to: Modify > Convert to Symbol…(F8)
- Name the symbol: Circle
- For Behavior select: Graphic
- Click: OK
Cross Ref: See the tutorial: Motion Tweening
Tip: To constrain the Oval Tool to drawing exact circles hold down the Shift Key whist dragging.
Circle”s Stroke is highlighted.Note: The color of the circle does not matter as it will become a Mask which is a transparent shape.
New Circle Symbol.
Step Five: Animating the Circle
The circle starts it”s animation on the left of Stage so the first thing to do is place it correctly:
- If the Align Panel is closed, open it: Window > Align(Ctrl K)
- In the Align Panel if the “To Stage” option is off, turn it on:

- With the circle selected click on: Align Vertical Centre

- Click on the button: Align Left Edge


The circle is now to the left of the Stage. - In the Timeline select: Frame 60
- Go to: Insert > Timeline > Keyframe(F6)
- Select: Frame 30
- Go to: Insert > Timeline > Create Motion Tween
- With Frame 30 selected go to: Insert > Timeline > Keyframe(F6)
- If the Align Panel is closed, open it: Window > Align(Ctrl K)
- With the circle selected click on: Align Right Edge
- Save your file : File > Save(Ctrl S)
- If you wish you may want to test your Movie: Control > Test Movie(Ctrl Enter)
- Close the Test Window:
- Unlock the Background Layer:
- In the Background Layer select: Frame 60
- Go to: Insert > Timeline > Frame (Ctrl F5)
Note: Your background should re-appear.
Align To Stage is On when the To Stage icon has a white background:
Frame 60 is selected.
There is now a copy of Frame 1 on Frame 60.
Note: the Align to Stage button should still be selected:
Your Movie should look similar to this:
Nearly there!Note: The gray background and text blinks and then disappears! That will soon be resolved.
Frame 60 of the background Layer is selected.




















