logo
g
Beauty & Self
Books & Music
Career
Computers
Education
Family
Food & Wine
Health & Fitness
Hobbies & Crafts
Home & Garden
Money
News & Politics
Relationships
Religion & Spirituality
Sports
Travel & Culture
TV & Movies

dailyclick
Bored? Games!
Nutrition
Postcards
Take a Quiz
Rate My Photo

new
European Travel
Action Movies
Bible Basics
Houseplants
Romance Movies
Creativity
Family Travel


dailyclick
All times in EST

Full Schedule
g
g Flash and Animation Site

BellaOnline's Flash and Animation Editor

g
Particle System Snowfall Scene Animation with Flash CS3 and ActionScript 3

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.

* Article Index - Particle System Tutorial Series star
Learn how to code a modular particle system that you can use to animate snowfall, rainfall or anything else in Flash CS3 and ActionScript 3.

ActionScript 3 Particle System Snowfall Animation 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 and Multiple Instances of Movie Clips 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 and Multiple Instances of Movie Clips - 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.

Controlling Flash Animation with If and Else Conditional Statements 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.

Creating a Particle System Wind Effect with Flash CS3 and 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.

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 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 Particle System - Using Variables to Write Modular 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.

Generating Random Numbers and the ActionScript Math.random() Method star
At this point in our snow scene tutorial, we will generate a random number for the Y position for each snow flake using the Math.random() method. The built-in ActionScript Math class contains methods that perform common math functions such as generating random numbers and rounding numbers.

Modular Functions in Flash CS3 and ActionScript 3.0 - Particle System Snow Scene Animation star
In the next few tutorials we will create a particle system snow scene animation with ActionScript and Flash. There are many snowflakes falling and each flake is one instance of the same movie clip. So we need an ActionScript modular function to animate all of the snowflakes on the stage.

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.

The ENTER_FRAME Event Listener to Animate Particles star
In this Flash CS3 tutorial, we will continue to improve our particle system. We will program a snowflake to fall down the stage by progressively increasing the value of the Y position for this snowflake movie clip and we will do this with a new event listener called the ENTER_FRAME event listener.

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.

Write Modular ActionScript 3 Code in Flash CS3 by Using Variables in a Particle System 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.

Flash and Animation Homepage | Editor's Picks Articles | Top Ten Articles | Flash and Animation Site Map

Add Particle+System+Snowfall+Scene+Animation+with+Flash+CS3+and+ActionScript+3 to Twitter Add Particle+System+Snowfall+Scene+Animation+with+Flash+CS3+and+ActionScript+3 to Facebook Add Particle+System+Snowfall+Scene+Animation+with+Flash+CS3+and+ActionScript+3 to MySpace Add Particle+System+Snowfall+Scene+Animation+with+Flash+CS3+and+ActionScript+3 to Del.icio.us Digg Particle+System+Snowfall+Scene+Animation+with+Flash+CS3+and+ActionScript+3 Add Particle+System+Snowfall+Scene+Animation+with+Flash+CS3+and+ActionScript+3 to Yahoo My Web Add Particle+System+Snowfall+Scene+Animation+with+Flash+CS3+and+ActionScript+3 to Google Bookmarks Add Particle+System+Snowfall+Scene+Animation+with+Flash+CS3+and+ActionScript+3 to Stumbleupon Add Particle+System+Snowfall+Scene+Animation+with+Flash+CS3+and+ActionScript+3 to Reddit

g

Want to Suggest a Link?
Think your link belongs here? Use the contact page to let this editor know.

For FREE email updates, subscribe to the Flash and Animation Newsletter


Past Issues

g features
The Motion Toolbar Tools

Apple Motion 5 - The Toolbar

Apple Motion - HUD

Archives | Site Map

forum
Forum
email
Contact

Past Issues
memberscenter


vote
Poetry
Daily
Weekly
Monthly
Less than Monthly



BellaOnline on Facebook
g


| About BellaOnline | Privacy Policy | Advertising | Become an Editor |
Website copyright © 2014 Minerva WebWorks LLC. All rights reserved.


BellaOnline Editor