Macromedia Flash - Create a snow effect
Through this tutorial, you will create a snow effect simply and quickly.You can use this effect on headers, banners on holidays or Christmas cards .
Step 1
Create a new flash file, press Ctrl + J ( Document Properties ) and set the size of the flash file to create (this size should match the background image you already have). Select the background color as a dark color, set the Frame rate to 27 and then press OK . Insert image as background for flash file.
Step 2
Select the Oval Tool (O) . In the Colors section of Tool Panel, lock the Stroke color by clicking on the small pencil icon, select the square with the red diagonal line. Set the Fill color to white and draw the following shape:
Step 3
While still selected the image, press F8 key (Convert to Symbol) to convert the drawn circle into a Movie Clip Symbol.
Step 4
While the Movie Clip is still selected, go to the Properties Panel below the window. In the left part, at the Instance name section enter the name of the Movie Clip as snow .
Step 5
Select the Selection Tool (V) and click once on the Movie Clip (circle) to select it. Go to the Action Script Panel (F9) and enter the following code:
onClipEvent (load) {
movieWidth = 350;
movieHeight = 263;
i = 1 + Math.random () * 2;
k = -Math.PI + Math.random () * Math.PI;
this._xscale = this._yscale = 50 + Math.random () * 100;
this._alpha = 75 + Math.random () * 100;
this._x = -10 + Math.random () * movieWidth;
this._y = -10 + Math.random () * movieHeight;
}
onClipEvent (enterFrame) {
rad + = (k / 180) * Math.PI;
this._x - = Math.cos (rad);
this._y + = i;
if (this._y> = movieHeight) {
this._y = -5;
}
if ((this._x> = movieWidth) || (this._x <= 0)) {
this._x = -10 + Math.random () * movieWidth;
this._y = -5;
}
}
Step 6
Select the first frame, revisit the Action Script Panel (F9) and enter the following code:
for (k = 0; k <50; k ++) {
duplicateMovieClip (this.snow, "snow" + k, k);
}
Now check the product you created. You can download the source file here.
You should read it
- Macromedia Flash - Product image advertising effects
- Macromedia Flash - Create banner text effect
- Macromedia Flash - Create Text running in banner
- Macromedia Flash - An attractive photo appearance effect
- Macromedia Flash: Create effects for nature photos
- Macromedia Flash - Photo effects with sound
- Macromedia Flash - Effects of lighting on photos
- Macromedia Flash - Animation and rotation effects
May be interested
- Macromedia Flash - Text display effectthis lesson will show you how to create a very nice text effect that can be used in some banner effects, advertisements, and presentation files ...
- Macromedia Flash - Water bubble effectcarefully watching this detailed tutorial will know how to create an extremely unique and funny effect with water bubble images using motion guide.
- Tutorial to create a sparkling snow effect using Photoshop Brushif you want your photos to be more vivid, bold in the winter by adding snowflakes to the photo. however, creating snow in photoshop is not easy.
- Macromedia Flash - Falling text effectthe words that just fall and rotate will be what you can do after reading this exercise ...
- Macromedia Flash - Vivid photo effectsthrough this tutorial, you will learn how to create a vivid photo effect with some basic flash tips. this article does not need to use action script code.
- How to create snowfall effect with DesktopSnowOKdesktopsnowok will create a snow effect on the computer screen very beautifully.
- Create a snow effect on the Windows Taskbarchristmas is coming soon, you can make small changes to windows computers to bring it a little festive atmosphere by creating a snow effect on the taskbar with the christmas taskbar software.
- Macromedia Flash: Create effects for nature photosthis tutorial will show you how to create simple effects for nature images using some special flash tips. this tutorial is implemented on flash cs5, there may be some differences if you use another flash version.
- Macromedia Flash - Effects of changing position of textthis tutorial will show you how to create a constantly changing text effect in flash using the action script.
- 14 simple steps to create a snow effect for the photocreate snow effect in photos to make the images more sparkling and bold christmas atmosphere is approaching. the steps are extremely simple and not too complicated as you think.