1. Trang chủ
  2. » Công Nghệ Thông Tin

adobe flash cs5 on demand part 48 doc

6 147 0

Đang tải... (xem toàn văn)

THÔNG TIN TÀI LIỆU

Thông tin cơ bản

Định dạng
Số trang 6
Dung lượng 477,27 KB

Nội dung

ptg Creating Masks Introduction You can create mask layers to show and hide parts of your artwork on the Stage. A mask works like a window blocking out everything but a certain area that you define. Any shape, symbol or text object can be used as a mask. The shape you place in a mask layer defines the area that will be visible in the linked layers below it. You can animate a mask to reveal the content on a layer in stages or animate the art in the layer beneath the mask. It is useful for spotlighting and con- trolling the shape of the viewable area. Masks are great tools for keeping the boundaries of the art on your Stage neat and controlled. They are also useful for cropping and experiment- ing with different borders and layouts, because you don't have to edit your art, you simply edit the mask. When creat- ing a mask layer, it is important not to mix elements. For example, don't use an editable shape and a group on the same mask layer group everything together or break the groups into editable shapes. For the most consistent results, use ungrouped, editable shapes in the mask layer. 11 11 What You’ll Do Understand Masks Create a Mask Layer Draw a Mask Activate a Mask Edit a Mask Remove a Mask Add Layers to a Mask Animate a Mask Layer 295 From the Library of Wow! eBook ptg 296 Chapter 11 You use a mask in Flash to control what is viewable on a layer. Whatever you paint or draw onto a mask layer defines the viewable area on any layer it is linked to. Essentially, the shape you place on the mask layer acts like a window to the layers linked beneath it. To li nk a laye r, you sim ply d rag it i nto th e linked set. When a layer is linked to a mask it displays a tinted icon and is indented under- neath the mask layer. Masks are useful for cropping artwork on the Stage, and animated masks can create interesting visual effects. Understanding Masks Linked layer Draw any shape or shapes on a mask layer to limit the visible area of any layer linked to it. Mask layer From the Library of Wow! eBook ptg Chapter 11 Creating Masks 297 The mask layer and all linked layers must be locked to activate the mask. Shapes drawn on the mask layer define the visible area. From the Library of Wow! eBook ptg 298 Chapter 11 Any layer can be converted into a mask layer. A mask layer only affects the linked layers beneath it, and there is no limit to the number of layers that can be included. Once a mask layer is created, you can drag other layers beneath it to link them. It is important to keep in mind that too much masking can affect performance in the Flash Player, especially when objects in the masked layers or the mask itself are animated. Creating a Mask Layer Create a Mask Layer Create a new Layer in the Timeline or select an existing one. The layer you select will be the one converted into a mask. If you want to mask the selected layer, create a new layer above this layer and select it. Click the Modify menu, point to Timeline, and then click Layer Properties. Click the Mask option from the Layer Type list. Click OK. A blue masking icon appears on the layer. 4 3 2 1 3 1 Layer 2 becomes a mask layer indicated by masking icon. 4 From the Library of Wow! eBook ptg Chapter 11 Creating Masks 299 Click the layer name of the layer directly beneath the mask layer, and then drag the layer slightly up to link it to the mask. TIMESAVER Press Control+click (Mac) or right-click (Win) the Layer Name area of the layer you want to convert into a mask, and then click Mask. When you use this method, Flash converts the layer into a mask and then automatically links it to the layer directly beneath it. 5 Drag layer 1 slightly up until the gray bar appears. This links it to the mask layer. Layer is linked to the mask layer. It appears in the Timeline indented under the mask layer with a tinted icon. Mask layer From the Library of Wow! eBook ptg 300 Chapter 11 You can use any filled shape as a mask. Flash ignores gradients, lines, and the content in bitmaps—in all cases it just deals with the whole shape. Use any of Flash's drawing tools to create a shape that will define the viewable area of the linked layers below. Keep in mind that mixing elements at different levels (editable shapes and symbols, for example) can produce unexpected results. Try to use only one type of element in any one mask: editable shapes, symbols, or groups. Drawing a Mask Create a Mask Layer Click to select the mask layer. If the mask layer is locked, click on the lock icon in the Lock Layer column to unlock it. Draw a shape with any of Flash's drawing tools or drag a symbol from the Library. The area of the shape drawn, or symbol used, is the area that will be the visible area of the linked layer(s) beneath the layer mask. 3 2 1 Any shape or shapes drawn on the mask layer defines what is visible in the linked layers beneath. 1 2 Circle shape From the Library of Wow! eBook . in Flash to control what is viewable on a layer. Whatever you paint or draw onto a mask layer defines the viewable area on any layer it is linked to. Essentially, the shape you place on the. Properties. Click the Mask option from the Layer Type list. Click OK. A blue masking icon appears on the layer. 4 3 2 1 3 1 Layer 2 becomes a mask layer indicated by masking icon. 4 From the Library. mask. TIMESAVER Press Control+click (Mac) or right-click (Win) the Layer Name area of the layer you want to convert into a mask, and then click Mask. When you use this method, Flash converts the layer

Ngày đăng: 02/07/2014, 21:20

TÀI LIỆU CÙNG NGƯỜI DÙNG

  • Đang cập nhật ...

TÀI LIỆU LIÊN QUAN