Particle System Snowfall Scene Animation with Flash CS3 and ActionScript 3

Flash and Animation
When you have finished this series, you will have a modular particle system code that you can use as a starting point to build any Flash project that needs a particle system.

ActionScript 3 Particle System Snowfall in Flash star
Now that we have the Flash CS3 particle system snowfall animation working exactly like we want, it´s time to optimize the program code.

ActionScript For Loop Code star
When you want your code to repeat the same task many times, you can use a code loop in ActionScript. Basically, this is code that uses an incremental counter to count the number of times the loop is performed. We then tell Flash to repeat the loop until a certain number is reached.

ActionScript For Loop Code - The Code star
In our first Flash snow scene tutorial, we learned how to use a modular function and ActionScript to animate more than one instance of the same movie clip. In this second tutorial, we will take a look at code loops for our particle system.

Alpha and Scale Particle Properties - Flash CS3 star
Let´s add interest to the animation by varying the size and transparency of the snowflake particle. After all, not all snowflakes are the same size. Also, by varying the transparency of some flakes, it will give the illusion that some of the snowflakes are farther away in the snow scene.

Event Listeners, Functions and Flash Particles star
It is time to make it snow in our Flash CS3 particle system animation. We will create more snowflakes just like the one we have been working on for the last few tutorials.

Flash Animation If and Else Conditional star
Now that our snowflake movie clip falls down the stage for our particle system snow scene animation, what happens when it falls below the stage? As we have it programmed now, the flake will just keep falling. We could stop the animation after the flake gets beyond the display area of the stage.

Flash CS3 ActionScript 3 Particle System star
Now that we have the Flash CS3 particle system snowfall animation working exactly like we want, it´s time to optimize the program code.

Flash CS3 Variables & ActionScript 3 Code star
We have finished the modular particle system code that you can use as a starting point to build any Flash project that needs a particle system.

Modular ActionScript 3 Code in Flash CS3 star
Now that we have finished this series, You have a modular particle system code that you can use as a starting point to build any Flash project.

More Math.random() Method in Particle System star
We have completed the snowfall animation for our Flash CS3 particle system. But the snowflakes seem to be missing from the bottom left corner of the stage. What can we do to adjust our animation? Will the Math.random() method save us?

Optimizing Flash CS3 Particle System Animation star
Now that we have the Flash CS3 particle system snowfall animation working exactly like we want, it´s time to optimize the program code.

Using Variables for Modular Particle System star
This tutorial will end this series. You have a modular particle system code that you can use as a starting point to build any Flash project that needs a particle system.

Wind Effect with Flash CS3 Math.random() star
In our Flash particle system snow scene, our flake just falls straight down. But, unless there is absolutely no wind, most flakes travel down at a slant. Let´s use some math to add more realism to our snowfall animation.

Editor's Picks Articles
Top Ten Articles
Previous Features
Site Map










Content copyright © 2018 by . All rights reserved.
This content was written by . If you wish to use this content in any manner, you need written permission. Contact Diane Cipollo for details.