Previous Tip  |  Next Tip  |  Design Tips   | [Bill's Home]

48. Masking in Flash

[Expand] Flash has many powerful masking effects that can add interest to graphics. The best way to implement the mask is to create a shape which will be used as the mask on a seperate layer, which is placed above the layer to which the mask will be applied to. In this example I've placed a copy of the skull graphic on the lowest layer. This graphic has a negative value for its brightness, thus it is much darker than the original graphic. The mask area is then applied to the normal graphic, and wherever the mask appears the area which the mask covers will appear. Everything else will be from the lowest layer. The mask layer can be easily animated using tweening. In this case I have applied a motion tween, along with a shape tween, so that the spotlight appears to become larger as it moves over the graphic.