# How to Mask the Snow effect?

**URL:** <https://forum.kirupa.com/t/how-to-mask-the-snow-effect/9053>\
**Category:** flash\
**Created:** [December 3, 2002, 10:04pm UTC](https://forum.kirupa.com/t/how-to-mask-the-snow-effect/9053 "2002-12-03T22:04:14Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![joshkugler](https://avatars.discourse-cdn.com/v4/letter/j/7feea3/32.png) [@joshkugler](https://forum.kirupa.com/u/joshkugler)\
**Post date:** [December 3, 2002, 10:04pm UTC](https://forum.kirupa.com/t/how-to-mask-the-snow-effect/9053/1 "2002-12-03T22:04:14Z")

</div>

I implemented the falling snow tutorial from this site, but I have a problem. Is there any way I can mask the snow flakes falling? I only want them visible in a certain area of the swf. Every time I try to mask it, it doesn’t work. Please, help me out.:-\

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [December 3, 2002, 10:52pm UTC](https://forum.kirupa.com/t/how-to-mask-the-snow-effect/9053/2 "2002-12-03T22:52:40Z")

</div>

Hopefully this will help u:

[http://search.atomz.com/search/?sp-a=00040c2f-sp00000000&sp-f=iso-8859-1&sp-q=Mask](http://search.atomz.com/search/?sp-a=00040c2f-sp00000000&sp-f=iso-8859-1&sp-q=Mask)

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [December 4, 2002, 4:39pm UTC](https://forum.kirupa.com/t/how-to-mask-the-snow-effect/9053/3 "2002-12-04T16:39:15Z")

</div>

Thanks for the link, but the problem is you can’t mask this. It sounds strange I know, but it’s true. I’ve even created the snow in a stand alone swf and referenced it in my movie, but it only allows 2 flakes to fall and then it stops.

When I preview just the swf, it works great, but stick it in a movie and it doesn’t. Any ideas?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [December 4, 2002, 5:56pm UTC](https://forum.kirupa.com/t/how-to-mask-the-snow-effect/9053/4 "2002-12-04T17:56:38Z")

</div>

Glad to see I’m not the only one, I was (and am) going crazy trying to get a mask on these snowflakes… Anyone suggest anything? Thanks

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [December 5, 2002, 11:40am UTC](https://forum.kirupa.com/t/how-to-mask-the-snow-effect/9053/5 "2002-12-05T11:40:56Z")

</div>

don´t mask them, if you want them in a retalgle area just add some **if** ´s like that:

(the snow flakes will be only visible from 0 -\> 100 px on the X axis, and, 50 -\> 150 px on the y axis)

```php
if (this._x>101){
   this._x=0
}
if (this._x<-1){
   this._x=100
}
if (this._y>151){
   this._y=50
}
if (this._y<49){
   this._y=150
}

```

=)
