# Snow 3.0 tutorial help

**URL:** <https://forum.kirupa.com/t/snow-3-0-tutorial-help/207732>\
**Category:** Uncategorized\
**Created:** [November 21, 2006, 1:15am UTC](https://forum.kirupa.com/t/snow-3-0-tutorial-help/207732 "2006-11-21T01:15:22Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![benny\_hill](https://avatars.discourse-cdn.com/v4/letter/b/b5e925/32.png) [@benny\_hill](https://forum.kirupa.com/u/benny_hill)\
**Post date:** [November 21, 2006, 1:15am UTC](https://forum.kirupa.com/t/snow-3-0-tutorial-help/207732/1 "2006-11-21T01:15:22Z")

</div>

I am trying to use the snow 3.0 tutorial. I want to mask the effect so it looks like it is in a snow globe but what ever i do, it won’t let me mask it. I tried a timeline mask, and an actionscript mask and neither worked. Any help would be appreciated.

Here is the code.

init = function () {  
width = 300;  
// pixels  
height = 200;  
// pixels  
max\_snowsize = 10;  
// pixels  
snowflakes = 50;  
// quantity  
for (i=0; i\<snowflakes; i++) {  
t = attachMovie(“snow”, “snow”+i, i);  
t.\_alpha = 20+Math.random()_60;  
t.\_x = -(width/2)+Math.random()_(1.5_width);  
t.\_y = -(height/2)+Math.random()_(1.5_height);  
t.\_xscale = t.\_yscale=50+Math.random()_(max\_snowsize_10);  
t.k = 1+Math.random()2;  
t.wind = -1.5+Math.random()(1.4_3);  
t.onEnterFrame = mover;  
}  
};  
mover = function() {  
this.\_y += this.k;  
this.\_x += this.wind;  
if (this.\_y\>height+10) {  
this.\_y = -20;  
}  
if (this.\_x\>width+20) {  
this.\_x = -(width/2)+Math.random()_(1.5_width);  
this.\_y = -20;  
} else if (this.\_x\<-20) {  
this.\_x = -(width/2)+Math.random()_(1.5_width);  
this.\_y = -20;  
}  
}  
init();
