1. Computing & Technology

Discuss in my forum

Flash Falling Snow with Random Functions and Movie Clips

By , About.com Guide

There are many different ways of creating snowfall in Flash, some more difficult than others. We’re going to use Math.random() and another function of the Math object, the Math.sin function, to create snow that falls in random places with a natural back-and-forth drift, following the path of a trigonometric sine curve.

You can create your snow before or after you create the rest of your scene, but I’ve started of by setting up a simple backdrop of snow dunes against a dark gradient sky, on a 550wx400h pixel stage.

©2012 About.com. All rights reserved.

A part of The New York Times Company.