Flash AS3 Tutorials Center | Interesting Flash Animation Tutorials | Valuing Flash Animation Tutorials | Flash ActionScript and Animation Home

AS3 Beginner Tutorials | AS3 Basic Lessons | AS3 Valuing Courses | AS3 Components Tutorials | AS3 and PHP Interaction Tutorials
AS3 Practical Tutorials | AS3 Animation Techniques | AS3 Transition Effects Tutorials | AS3 Download Upload Files | AS3 Particle Systems
Communication Between Flash Movies with AS3 | AS3 and JavaScript interaction | AS3 Matrix Transformation | AS3 Physics Simulation Tutorials

Rain with Water Ripple Flash Particle System

Step 1: Create Rain Drop Particles Randomly on Stage

Same as other Flash ActionScript Particle System, the first step is create rain drop particles randomly on the stage of flash movie.

Please update flash player to view this Flash ActionScript tutorial!

Flash Tutorial Content:

To create flash rain and water ripples effect, The first step is create all rain drops particles on the stage. The position of rain drops are created randomly on the stage.

The first Flash Movie of this tutorial is shown as above.

Flash ActionScript Codes:

// Declare number of Rain Drops
var numOfRain:uint = 10;

// Creates 10 Rain Drops on the stage.
for (var i:uint = 0; i < numOfRain; i++) {

// Create a new Rain Drop
// Remember to set linkage in Movie Library
var rain:RainDrop = new RainDrop();

// Add the Rain Drop to the stage
addChild(rain);

// Assign start location of Rain Drops
// x-axis: 0 - 490
// y-axis: 0 - 200
rain.x = Math.random() * 490;
rain.y = Math.random() * 200;

}

Remarks:

This Flash ActionScript rain with water ripple effect tutorial shows how to create rain drop particles randomly on the stage of Flash Movie.