Snow 3.0 Help - end snow function

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 !!

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