FLASH realizes dynamic Blur effect

Source: Internet
Author: User
Dynamic

In some of the title animation we often see a very bright blur effect, very visual impact. Most of the high quality of the fuzzy effect using PS processing to import into the flash production. In fact, in Flash can also use its scripting features to achieve dynamic blur effect (the effect is also possible).

• First use PS, make two pictures. A piece of clear, Fuzzy (Gaussian blur).

• Then import two pictures into flash, create three layers, in order: Clear picture (bottom), blurred picture (in the middle), the top is as. The most important point: select the blurred picture. Press F8 to convert it to MovieClip and name the instance name blurred on the property panel.

• Add the following code to the as layer.

var mycolor:color = new Color (blurred);
var white:object = {ra:100, rb:255, ga:100, gb:255, ba:100, bb:255, aa:100, ab:255};
Mycolor.settransform (white);
SetC ();
function SetC () {
Onenterframe = function () {
white.rb-=5;
white.gb-=5;
white.bb-=5;
white.ab-=5;
Mycolor.settransform (white);
}
}

Click to see the final 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.