Flash visual effects examples of the mood

Source: Internet
Author: User
Tags variable
Effects

Is another year of flowers fall, is one year old flowers open (hehe, first sigh). This example is done by programming the mask element and using color techniques to achieve a "matte" effect, as shown in the effect picture. This effect is most worthy of the reader to learn how to use a simple program to create a certain speed of the components. This is another reason why this simple example has some charm.

 Demo Effect: (you can see the animation effect with the mouse movement)

Click here to download the source file

Production steps:

1. Create a new Flash document, click the Size button in the Properties panel, and open the document Properties panel to set the scene size to 600px x 200px, with a black background and a frame frequency of 12fps.

2. Press the shortcut key Ctrl+f8 to create a new movie clip symbol named "Aperture." Press the shortcut key SHIFT+F9 to open the Color mixer panel and set it as shown in Figure 1. The colors of the four sliders are white, #F4AC35, #E0C81F, #202020, and the alpha value of the 4th slider is 0%.

Figure 1

3. Click the Ellipse tool and press shift in the scene of the aperture to pull a circle with a diameter of 180 pixels, as shown in Figure 2.

Figure 2

4. Go back to Scene 1, create the "text" Layer and the "aperture" layer, as shown in Figure 3. Press the shortcut key ctrl+l to open the library panel and drag the "aperture" component to the scene in the "Aperture" layer.

Figure 3

5. Click on the "Text" tool, and in the "text" layer, enter the "Mood for Love" four words, as shown in Figure 4. The color of the word is #fcb632.

Figure 4

6. Click on the 1th frame of the text layer, press F9 to open the Actions panel, type the code mouse.hide (), and its effect is to hide the mouse. Then right click on the layer, in the pop-up menu select "Mask Layer" command to turn the layer into a mask layer. As shown in Figure 5.

Figure 5

7. Click the aperture component in the aperture layer scene and give it an instance name "Aperture" in the Properties panel. As shown in Figure 6. Then press F9 to open the Actions panel and type the following code:

Figure 6

Onclipevent (enterframe) {
Assign the mouse coordinate value to the variable "speed"
Speed = _XMOUSE/20;
Speed 2 = _YMOUSE/10;
aperture = _root. Aperture; The value of the variable "speed" is then passed to the _x, _y property, so that the aperture element moves
Aperture. _x + = speed;
Aperture. _y + = Speed 2;
}

This example is here to make a complete.



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.