Three ways to make the effect of Flash snowflake visual animation

Source: Internet
Author: User
Tags insert

Three ways to make the effect of Flash snowflake visual animation

The first method:

The most stupid but also the best effect, is to use the "Guide line" function, so that snowflakes non-stop floating, if more than a few layers, the effect is better. 1, create a new flash film. Set the background to "black" and the rest with the default value. 2, press Ctrl+f8 to create a new component, type "movie clip", named "Snowflake." In its center, draw an irregular polygon with the pencil tool and fill it with white with the paint bucket tool. (as shown in Figure 1-1)

3, and then use CTRL+F8 to build a component, the type of "movie clips", named "Front layer."

4, drag the component "snowflake" to it, with the "selected tool" in the "scale" function to narrow it (tip: First use Magnifier to enlarge it, and then use the "scale" function, can shrink smaller). "Insert KeyFrames" on frame 80th, with the right mouse button "Add Guide line" feature on Layer 1 (see Figure 1-2).

On the 1th frame of the newly added "guide line: Layer 1", start with "snowflake" and draw a curved curve. Drag snowflakes from the 80th frame along the curve to the end of the curve. Then click on the 1th frame of layer 1 to click the right mouse button, select the "Creative Animation action" function, see figure 1-3.

5, the 4th step is to make a snowflake, snow is not just the next piece of it. Insert layer, repeat step 4th 10 times. The effect after doing well is shown in Figure 1-4.

6, to repeat the 3rd to 5th Step two times, the difference is the name of the components are "middle" and "back layer." The size of snowflake is not the same as the path of the guide line. This is to do a few more layers, it looks a little more delicate. 7, now back to scene 1, insert 6 layers, respectively named "Back Layer 1", "Back Layer 2", "Middle 1", "Middle 2", "Middle 3", "Middle 4", "Front layer 1", "Front Layer 2". Drag the corresponding component on the corresponding layer and adjust the time axis appropriately so that the snowflakes drift together. See Figure 1-5.

Press Ctrl+enter to see the effect.

  The second method:

The function of ActionScript is simpler and the steps are as follows:

1, create a new flash film. Set the background to "black" and the rest with the default value.

2, press Ctrl+f8 to create a new component, type "movie clip", named "Snowflake." In its center, draw an irregular polygon with the pencil tool and fill it with white with the paint bucket tool. Zoom it out with the scale feature in the selected tool.

3, drag "snowflake" to Scene 1, in its "instance panel" in the "name" column in the "Snow". In its action panel, add the following action:

Onclipevent (Enterframe) SetProperty (snow, _visible,false);

4. Add the following action to the action panel on frame 1th:

n =n+1;
Duplicatemovieclip (_root.snow, Snows+n, N);
SetProperty (_root[snows+n], _x,random (550));
SetProperty (_root[snows+n],_y,-5);
SetProperty (_root[snows+n], _xscale,random (80) +20);
SetProperty (_root[snows+n], _yscale,_root[snows+n]._xscale);
SetProperty (_root[snows+n], _alpha,random (70) +20);
SetProperty (_root[snows+n],_quality,low);

5, in the 2nd frame, press the right mouse button "Insert Keyframe" function, see figure 2-1. and add the same action as frame 1th on its action panel.

6, press CTRL + ENTER to see the effect.

  The third method:

It's also a function in ActionScript, but the effect is quite different from the one above. 1, create a new flash film. Set the background to "black" and the rest with the default value. 2, press Ctrl+f8 to create a new component, the type is "graphics", named "Snowflake". Use the Pencil tool to draw a snowflake shape on it (see Figure 3-1). 3, press Ctrl+f8 to create a new component, type "movie clips," named "Snowflake movie." Drag the component "snowflake" to frame 1th,

Insert KeyFrames on frames 10th and 20th, respectively. Set its alpha to 0% on the effect panel of the component "snowflake" in frame 1th.

Drag the component "snowflake" in frame 10th to the lower left for a short distance, and set its alpha to 100% on the effect panel. Drag the component "snowflake" in frame 20th down a distance (more than the 10th frame) and set its alpha to 0% on the effect panel. Then, on frames 1th and 10th, select the Create Animation action feature on the right mouse button respectively. The complete situation is shown in Figure 3-2.

4. Drag "snowflake movie" to "Scene 1" and insert "snow" in the "name" column in its "instance panel". 5, in the "Scene 1" in the 2nd frame on the right mouse button on the "Insert Keyframe", "clear keyframes." Then add the following action on the action panel on frame 1th:

A=random (100);
while (number (a) <=100) a =number (a) +1;
SetProperty (/snow, _x, Random (500));
SetProperty (/snow, _y,random (400));
SetProperty (/snow, _xscale,random (50));
SetProperty (/snow, _yscale, Random (50));
SetProperty (/snow, _rotation,random (360));
Duplicatemovieclip (/snow,snow_ add a, a);

Press Ctrl+enter to see the effect. As you can see, using ActionScript makes it easy to create some special effects that you can use to make a lot of repetition.



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.