How to cut a "hole" inside a rectangular Sprite to see the Sprite underneath? (ActionScript 3)
- by Zando
Everytime I google this question I see confusing information about masks and blends, none of which seems to directly apply to what I think should be an easy thing...
There are three Sprites involved here...the lowest layer sprite is pretty much a background. I want to overlay a translucent Sprite on top of the background and then I want the third, top-most Sprite to act as a hole, so that the area inside the third Sprite is completely transparent, so that the background sprite is completely visible.
How would I go about doing this dynamically (i.e. dynamically drawing the masking sprite and hole using the Actionscript graphics calls)?