Flash mx make multicolored windmill animation

Source: Internet
Author: User
Tags relative

  Demo Effect:

Click here to download the source file

  Production steps:

1. Start Flash MX First, create a new document, and modify the properties of the document. The following figure:

2. Create a new component, named Light, behavior: graphic, but click the OK button, then set the stroke color to colorless in the toolbox, then open Design panel, select the color mixer, set the fill type to linear, and set 5 strokes from left to right, with red, orange, green, yellow and purple colors respectively. As shown in figure:

3. In the workspace, select the Ellipse tool to draw an ellipse as shown in the following illustration:

4. Select the arrow tool in the Toolbox, adjust the shape of the circle, and then open the alignment panel, selecting relative to the stage, select Align left and vertical. As shown in the following illustration:

5. Create a new component again, named Motion Light, behavior: movie clips, and then open the Library window drag the light graphic symbol that you just created into the current workspace, and open the Alignment panel to set the previous step relative to the stage, set left alignment and vertical, and finally insert a keyframe at frame 60th. And the 60 frames out of the graph properly elongated, and then in 1 to 60 of any frame right mouse, create a motion tween. The following figure:

6. Back to the main scene, drag the newly created motion light movie clip symbol to the center of the work area. Select a graphic for the movie clip symbol, and open the Properties panel setting instance named: Xian, as shown in the following illustration:

7. Then press F6 at frame 2nd to insert a keyframe, press F9 to open the action panel, and add the following script:

N=number (n) +1;
if (number (n) <360) {
Duplicatemovieclip ("/xian", "Xian" +n,n);
SetProperty ("Xian" +n,_rotation,number (GetProperty ("/xian", _rotation)) +number (n));
}
gotoAndPlay (1);

The effect looks like this when you finish:

Now you can press Ctrl+enter to test the film.

  Note:

  1. In the procedure for this instance, we can change the number following the statement n=number (n) +1 to render a variety of effects.

  2. If you use Flash MX 2004 to make the above animation, when making the final, press Ctrl+enter is not to see the effect, you have to publish the movie with Flash Player 6.0 the following player to watch 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.