Flash example Rain animation effect Tutorial Production

Source: Internet
Author: User

Flash instance Rain animation effect production, is a flash test often to test the content, specially designed for candidates to participate in the test "Flash example Rain Animation effect Tutorial " topics and other relevant information for candidates to refer to!

Production process

  One, a new layer, the size of random;

  Second, new components (movie clips):

1, the production of raindrops and whereabouts. Use the line tool (color to gray, 1 pixels) to draw a short line, use the selection tool to move the line above (preferably to a point above the document), in the 15th frame (to rain is short, but long) place the key frame, and move the line downward, select any frame between 1 to 15 frames, select the properties under the tween, select the shape. Then insert a blank keyframe at frame 16th, insert a blank keyframe at frame 36th, and write code on the frame stop ();(This is to make the rain but Umi urgent.

2, the production of water waves. Lock Layer 1 Creates a new layer 2, inserts a blank keyframe at the Layer 2 15 frame, using the Ellipse tool (with the stroke dimmed and the fill color set to none), draw an ellipse underneath the line, select frame 15th and move it to 16 frames, insert keyframes at frame 35th, use the warp tool to enlarge the ellipse, and click the ellipse with the selection tool. Set its transparency to 5, and then create a shape tween animation between 15-35 frames.

  Third, click the scene back to the scene, press Ctrl+l to open the library panel, drag the component to the scene layer 1, and adjust to the appropriate position, in the 170th frame insert keyframes. Use the selection tool to click on the symbol instance, in the property panel to write the instance name, write at will, I write here is MC (if you are not writing MC, please change the MC in the code to the name you wrote).

  Create a new layer , insert code C=1 at frame 1th, insert a blank keyframe at frame 2nd, and copy the following code into the Actions panel.

function ee () {

Duplicatemovieclip ("MC", C,c);

SetProperty (c, _x,random (550));

SetProperty (c, _y,random (200));

Updateafterevent ();

C + +;

if (c>300) {

Clearinterval (KK);

}

}

Kk=setinterval (ee,120);

OK, press Ctrl+enter to see the effect.

Adjusted again, the effect is better, the tutorial will no longer write. Mainly in the original on the addition of a layer of water waves, the raindrops in the line on a number of adjustments, changed the color.

Small series for everyone to edit the Flash example Rain Animation effect Tutorial , I hope everyone has helped!

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.