Creating Rain in Flash Using actionscript

Does anybody know how to make rain in FlashMX using actionscripting? I thought it would be a neat idea to have a layer of realistic looking rain in a flash movie but i have fairly limited knowlegde of actionscripting to do so. For ne advanced coders out there i was hoping u could help me. I have a theory as to how this can be done… Basically four sub programs…

  1. One that creates random amounts of single pixeled particles with the same color but random alpha levels.

  2. Next a Gravity program (like in the Kirupa Tutorial), that will make the particles fall.

  3. A simple program that as the particles fall makes them all fall at the same varying angle (ex. wind movements to rain).

  4. And lastly and program (simlar to mouse trails) that makes the particles create a fading trail as they fall from whatever they base alpha level is. (ex. a particle that starts as 70% Alpha has a trail of 12 1 pixeled particles that follow it each dereasing by 5% Alpha.)

I’d like to see and understand the programming behind this for neone interested in helping me endeavor in this lil experiment. I won’t lie to u, it will probably have the same complexities as that of Kirupa’s snow. But i think it would be an interesting tutorial to place on his site.

Just a Thought…

Regards,
-Blackfire :hr:

P.S. Attached is an example of what the rain might look like. Personally I like the none blurred 2nd half of the picture. Plus it is easier to program.