# Runtime Gif Mask

**URL:** https://forum.kirupa.com/t/runtime-gif-mask/237962
**Category:** flash
**Created:** [September 5, 2007, 10:36pm UTC](https://forum.kirupa.com/t/runtime-gif-mask/237962 "2007-09-05T22:36:30Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![project1\_exe](https://avatars.discourse-cdn.com/v4/letter/p/eb9ed0/32.png) [@project1\_exe](https://forum.kirupa.com/u/project1_exe)
#### Post date: [September 5, 2007, 10:36pm UTC](https://forum.kirupa.com/t/runtime-gif-mask/237962/1 "2007-09-05T22:36:30Z")

</div>

i have loaded a jpg file(a simple hat graphic) to a loader and added it inside a sprite. the jpg file also has a mask which is a gif file(black and white where the white area is the area that is occupied by the simple hat graphic and the rest is black, no transparent area in this gif), i loaded this gif also in another loader and put it in another sprite. masking the gif sprite to the jpg sprite will just make a rectangular mask for the jpg sprite, not as if it were cut through.

i have tried playing around blend modes but i don’t seem to get the right combination, or am i doing it right? i hope you get the idea. thanks
