• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint

Using Dynamic Masks

You can turn any movie clip into a mask and specify the movie clip to be masked with the method setMask(). To use the method, you define the movie clip you want to be masked as the target path before the method and then define the movie clip you want to act as a mask as its parameter: masked_mc.setMask(mask_mc). Because you can control all the properties of movie clips, you can make your mask move or grow and shrink in response to viewer interaction. You can even combine the setMask() method with the movie-clip drawing methods to create masks that change shape (Figure 7.90).

Figure 7.90. Combining draggable movie clips (the vertices), drawing methods (the lines connecting the vertices), and dynamic masking (uncovering the image “behind” the wrapping paper).



PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint