Use Flash to make spiral divergence effect animation

Source: Internet
Author: User
Effects

Today we are using flash to make "unpredictable" spiral divergent animation effects, before making this special effect, let's first look at the final effect.

Click here to download the source file

Production process:

1th Step: Open the Flash software, create a new file size: 400*300, background: Black, frame number: 25 frames. The following figure:

2nd step: Click "Menu bar" → "insert" → "New symbol" (shortcut key: Ctrl+f8), Name: component 1; behavior: graphics; Click OK. The following figure:

3rd Step: Click "Toolbar" → "rectangular tool", stroke color: white; stroke height: 1; draw a small square. The following figure:

4th step: Click "Menu bar" → "insert" → "New symbol" (shortcut key: Ctrl+f8), Name: component 2; behavior: movie clips; Click OK. The following figure:

5th step: Click "Menu bar" → "Window" → "Library" (shortcut key is: F11), from the library to drag out just do: component 1, placed in the center, and in the 5th frame, 10th frame, 15th frame, 20th Frame inserted keyframes (shortcut key: F6), and then click the 5th Frame, and then click the Graphic, In the property bar, change its hue to green (as shown below), and then change the hue of frame 10th, frame 15th, and 20th frames to: red, blue and light yellow respectively.

6th: With the right mouse click on the 1th frame, 5th frame, 10th frame and 15th frame, select "Create motion Tween", and then click the 1th frame, in the "Action" column, enter: gotoAndStop (_LEVEL0:KADR), the following figure:

7th step: Click "Menu bar" → "insert" → "New symbol" (shortcut key: Ctrl+f8), Name: component 3; behavior: movie clips; Click OK.

Then drag from the Library 4 just done: component 2, put in the center, and in each component's "Property bar" Enter the name: Obj1 (This step is important). The following figure:

8th step: Click "Menu bar" → "insert" → "New symbol" (shortcut key: Ctrl+f8), Name: component 4; behavior: movie clips; click OK;

And then drag from the Library 4 of the Just Do: component 3, placed in the center; and enter the name in the property bar: obj (This step is important), then insert keyframes in frame 25th, select the Freeform tool on the toolbar, enlarge the graphics for frame 25th, rotate 45 degrees, and click Enter to determine. The following figure:

9th step: Click on the 25th frame, then click the graphic, in the property bar, its alpha value to: 0%, the following figure:

10th: With the right mouse button click on the 1th frame to select "Create motion Tween", and then click the 25th frame, in the "Action" column input: Removemovieclip (_target), the following figure:

11th step: Back to Scene 1, drag out of 4 from the library just do: component 4, and in the property bar enter the name: pred (This step is important), and in the 3rd frame Insert frame (shortcut key to F5) the following figure:

Step 12th: Create a new Layer 2 on the timeline, insert keyframes on the 1th, 2, 3 frames (shortcut keys are F6), click on the 1th frame of Layer 2, and enter the following code on the Action Bar: (as shown below)

SetProperty ("/pred", _visible, false);
i = 1;
Rot = 0;
SCL = 100;
Krot = 8;
KSCL =-2;
Kadr = 1;
KADR2 = 1;

13th step: Click on Layer 2 of the 2nd frame, in the "Action" column, enter the following code: (pictured below)

Duplicatemovieclip ("/pred", "obj" Add I, I);
Rot = number (rot) +number (Krot);
SCL = number (SCL) +number (KSCL);
Krot = number (Krot) +1;
Kadr = number (KADR) +1;
KADR2 = number (KADR2) +1;
if ((Number (SCL) >200) or (number (SCL) <20)) {
KSCL =-KSCL;
}

if (number (Krot) >number (random (120)) {
Krot =-krot;
}

if (number (KADR) >20) {
Kadr = 1;
}

if (number (KADR2) >160) {
KADR2 = 160;
}

SetProperty ("obj" Add I, _rotation, rot);
SetProperty ("obj" Add I, _xscale, SCL);
SetProperty ("obj" Add I, _yscale, SCL);
i = number (i) +1;

13th step: Click on Layer 2 of the 3rd frame, in the "Action" column, enter the following code: (pictured below)

gotoAndPlay (2);

The 14th step: basically calculate the outstanding accomplishment! Click "Menu bar" → "Control" → "Test Movie" (shortcut key: Ctrl+enter), you can see the final effect! The process of making this article is more complicated, so the source file is attached to everyone for reference.



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.