Easy-to-follow video tutorials help you learn software, creative, and business skills.Become a member
In this movie we'll use a mask to apply an animated shadow to our monster. If you are following along open up Shadows.fla in the Chapter_04 folder. If you don't have the exercise files, you'll just need some movie clips to follow along. I am going to double-click the monster to enter its timeline and then our goal here is to cast a shadow of the claw on the monster's face. So to do that, I am going to need some new layers above the Monster layer. So I'll create one called Mask, and that layer will be above the Shadow layer. For the shadow I am going to use a copy of the claw. The copy of the claw I am going to use is called LeftClawNoSound.
In an earlier movie, we made this copy of a movie clip that doesn't have any sound, so that sounds don't overlap. So I am going to move this claw on to the Stage. And you'll that it's reversed from the other one. So what I am going to do is use the free transform tool and flip it horizontally, and then scale it so it's the same size as the other one approximately. And then I'll place it over the monster's face. And then I am going to apply the Drop Shadow in the same way that we created our Perspective Shadow in another movie.
So I'll go to the Properties inspector and I'll add a Drop Shadow filter and then I'll check Hide Object, change the Distance to 0 and then reduce the Strength a whole bunch. That looks good. And now we need to create the mask. So what I am going to do is actually copy the whole monster and then make it into a vector shape. I'll show you how to do that and why in just a second.
I am going to lock the Shadow layer, and we are going to click on the Monster layer to select and I'll copy that by pressing Command+C on the keyboard, and I'll select the Mask layer and press Shift+Command+V or Shift+Ctrl+V on the PC to Paste in Place. So now I have a copy of my monster. The data type for this is movie clip, so when I click on the monster you'll see movie clip in the Properties inspector. Now if I just tell Flash to set this a mask by right-clicking that layer and choosing Mask, then Flash will create a mask for me, but if I test the movie you'll see that it looks a little bit choppy.
(Snap, snap, snap.) The reason for the choppiness is because I am using a really complex movie clip for my mask. What you can do to make this work a little bit more cleanly is to break the movie clip into shapes. So what I am going to do is unlock the Mask layer, then with the Mask Layer selected, I am going to select Command+ B on my keyboard, that's the keyboard shortcut for Modify and Break Apart. What that does is it breaks apart any object to its next editable level. So for example, I had this movie clip that is a whole bunch of drawing objects. When I break the movie clip apart, then I get the drawing objects without that movie clip container. I break apart the movie clip container to reveal only the drawing objects.
So you'll see on my Stage I have a group selected. You could see some drawing objects in there. So if I keep pressing Command+B, I am eventually going to get all vector shapes. And when I have that selection, I can change the color in the Properties inspector to let's say a purple color, then I have a purple vector shape for my mask. And that will greatly simplify the mask and reduce the load for Flash in processing it. Additionally, you can select your vector shape and then choose Modify > Shape > Optimize, and then you can adjust the Optimize Strength however you want, click OK, you get the information from Flash, then you're shape is Optimized. That way you are further reducing the load for the Flash Player. So now I'll lock the Mask and I can Preview the Shadow on the monster. Now I'll test the movie to see this is in the Flash Player.
(Snap, snap, snap, snap, snap, snap.) So using Masks and our Shadow technique, you can cast shadows on objects and mask out any parts of the shadow that don't cover the object. Further if you are using a complex movie clip as a mask. Break apart the movie clip into a shape and optimize that shape to let the Flash Player perform better.
Get unlimited access to all courses for just $25/month.Become a member
107 Video lessons · 35552 Viewers
100 Video lessons · 6076 Viewers
94 Video lessons · 24848 Viewers
83 Video lessons · 10475 Viewers
Access exercise files from a button right under the course name.
Search within course videos and transcripts, and jump right to the results.
Remove icons showing you already watched videos if you want to start over.
Make the video wide, narrow, full-screen, or pop the player out of the page into its own window.
Click on text in the transcript to jump to that spot in the video. As the video plays, the relevant spot in the transcript will be highlighted.
Your file was successfully uploaded.