Flash makes very lifelike snow visual animation effect

Source: Internet
Author: User
Tags eval insert
Hello everybody, today teaches everybody to do a very lifelike snow effect. Now start making.

1, open the Flash document, background layer is black, frame frequency is 20, new symbol for graphics, named Snowflake.

2, draw a snowflake in the graphic element, if dozen home oneself will draw the snowflake words completely may according to own hobby to draw, if will not see the drawing, I was draws with the line tool, the picture is the step.

3, draw a good figure 2 after the last step, open the Window deformation toolbar to change the rotation to ask 60 degrees and then click Copy and apply deformation.

4, Draw good snowflakes, in the graphics components in the construction of a layer with an elliptical tool for a circle color change to radial.

5. Place the circle in the center of the snowflake.

6, the new component, the movie clip named Snow.

7, open the Snow film clips, layer 1 pull the graphic element snowflakes in, create a new layer, with a pencil tool to draw a curved line as shown:

8, Layer 1, 80 frame Insert key frame, Layer 2 frame 80 frames, and then click the Layer 1 1 frame to pull it to the top of the line, note that when you click on the layer circle will appear a center circle must put the center circle in the head of the line.

9, point to live layer 1 80 frame, the snowflake element is pulled to the bottom of the line, the same center circle aligned to the top of the line.

10, point to live layer 1 any frame, open properties-tween for-animation-rotation-CIS clock-99 times.

11, click the Layer 2, the right mouse button, the property changed to the guide layer, and then point to the Layer 1, the right mouse button, the property to be guided.

12, after doing a good job, return to the scene. Drag the snow element in to the top-right corner of the layer, then click the movie clip to change the instance name to Mimang and then point to the Snow movie clip click the right mouse button to select the link-tick on the top of your ActionScript export (X).

13, layer 3rd frame inserted frame, new 1 layer named as the first frame at the insert blank keyframe to open the action surface to write code:

i = 1;

14, as layer 2nd frame Insert blank key frame Open action Surface version write code:

Duplicatemovieclip ("Mimang", I, I);
SetProperty (i, _x, random (600) +10);
SetProperty (i, _y, random (350));
SetProperty (i, _alpha, random (50) +50);
Tint = Random (40) +40;
eval (i). _xscale = tint;
eval (i). _yscale = tint;
i = i+1;
if (i = = 150) {
gotoAndPlay (1);
}

15, click on the as layer of the 3rd frame Open action write code;

gotoAndPlay (2);

16, create a new layer for the background layer, choose their favorite snow pictures into the stage to the wide-to 550, high-to 400,x-0 y-0 so it's the same size as the stage.

Well, the whole snow effect is done. Click Ctrl+enter to see the effect.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.