Flash production of colorful stars effect animation

Source: Internet
Author: User
Tags insert

  Effect Demo:

Example description

colorful stars from the sky, this animation has a festive atmosphere, animation size of less than 5 K, can be created to change the effect of thousands, fully embodies the powerful function of the script statement. Create a movie document

1. Execute the "file" | "new" command, select the "General" | "Flash document" option in the pop-up dialog box, set the background to lavender, and click OK.

2. Perform the Insert | new Symbol command to create a new movie clip. Name: Star.

3. In the animation segment of the Star Edit window layer one of the first frame, draw a star graphics.

4. Next, press the F6 key at frame 20th to insert a keyframe, select the star shape of the frame, make the appropriate deformation, and modify the transparency to 0%.

5. Create a motion tween between the first frame and the 20th frame.

6. Next, create a new layer two in the Timeline window, and draw a circle at the first frame of the layer (next to the stars).

7. Select the 15th frame of Layer Two, press the F6 key to insert the keyframe, then select the first frame of the circle, reduce it, and change the transparency to 0%.

8. Return to the main scene of the editing window, open the Library panel to drag the star graph to the first frame of layer one, in the property bar to set the instance name: MC. In the third frame, press F5 to insert the normal frame.

9. Create a new layer two on the timeline and write a script statement.

First frame:

Tate = 0;
Loopvar = 0;

Second frame:

Duplicatemovieclip ("MC", "MC" Add Loopvar, Loopvar);
Removemovieclip (MC Add (LOOPVAR-15));
SetProperty ("MC", _rotation, Tate);
SetProperty ("MC", _yscale, Random (400)-200);
SetProperty ("MC", _xscale, Random (400)-200);
SetProperty ("MC", _x, Random (400));
SetProperty ("MC", _y, Random (400));
Tate = tate+10;
Loopvar = loopvar+1;
MyCol = new Color (MC);
Mycol.settransform ({rb:random (255), Gb:random (255), Bb:random (255), Aa:random (100)});

Third frame:

gotoAndPlay (2);

OK.. Look at the effect of "fairy scattered Flowers".



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.