# Snow 3.0 Help - end snow function

**URL:** <https://forum.kirupa.com/t/snow-3-0-help-end-snow-function/185411>\
**Category:** flash\
**Created:** [April 13, 2006, 6:03am UTC](https://forum.kirupa.com/t/snow-3-0-help-end-snow-function/185411 "2006-04-13T06:03:35Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![waywoodr](https://avatars.discourse-cdn.com/v4/letter/w/3be4f8/32.png) [@waywoodr](https://forum.kirupa.com/u/waywoodr)\
**Post date:** [April 13, 2006, 6:03am UTC](https://forum.kirupa.com/t/snow-3-0-help-end-snow-function/185411/1 "2006-04-13T06:03:35Z")

</div>

Hey !!

Im using the Snow 3.0 effect but i need a bit of AS that will end the snow effect once the playhead has left the frame

or a bit of AS that will end the function once a button is clicked or something like that

cos the snow still falls after i leave the frame !!

---

<div class="post-metadata">

**Author:** ![Macaroni\_Ted](https://avatars.discourse-cdn.com/v4/letter/m/df788c/32.png) [@Macaroni\_Ted](https://forum.kirupa.com/u/Macaroni_Ted)\
**Post date:** [April 13, 2006, 6:58am UTC](https://forum.kirupa.com/t/snow-3-0-help-end-snow-function/185411/2 "2006-04-13T06:58:26Z")

</div>

put this code in the “init” function before the for loop.

[AS]createEmptyMovieClip(“holder”,1)[/AS]

then change the first line of the for loop to…

[AS]t = holder.attachMovie(“snow”, “snow”+i, i);[/AS]

then finally this is the code to remove it all

[AS]removeMovieClip(holder);[/AS]

if you have this on the actions/timeline layer of whatever frame you go to, it will remove the snow
