Flash8 make pictures from blur to clear effect

Source: Internet
Author: User
Tags filter

Previously remember in which site to see this effect, but how to find also can not find! So let us explain how to make. The main is to explain Flash8 blur filter, using Actonscript call blur filter implementation from blur to clear effect.

The results are as follows, do not provide you with the source file, very simple!

First, prepare four pictures of the same size, and then go into flash, each converted to a button component.

Then the four buttons are dragged to the stage, the position is placed well. and name the instance names for them: Link1_btn, link2_btn, Link3_btn, link4_btn.

Then create a new layer and add the code:

The code is as follows:

Import Flash.filters.BlurFilter;
var blurred:blurfilter = new Blurfilter (5, 5, 4);
var myfilters:array = [blurred];
Link1_btn.filters = Link2_btn.filters = Link3_btn.filters = Link4_btn.filters = Myfilters;
Link1_btn.onrollover = Link2_btn.onrollover = Link3_btn.onrollover = Link4_btn.onrollover = function () {
This.filters = null;
}
Link1_btn.onrollout = Link2_btn.onrollout = Link3_btn.onrollout = Link4_btn.onrollout = Link5_btn.onRollOut = function () {
This.filters = myfilters;
}

The code is well understood. Press the Ctrl+enter test!



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.