Flash AS3 Simple to make a picture into a shutter effect tutorial

Source: Internet
Author: User

Flash AS3 Simple to make a picture of the shutter effect method, suitable for beginners tutorial, I hope you can practice!

Photo Blinds Effects:

Production process:

Arbitrarily choose a picture, as this example animation in the picture, we will make the picture to achieve the shutter animation effect.

Then press Ctrl+j to modify the properties of the document, set any color as the background can be adjusted to the size of your own choice of the size of the picture can be as large as the 幁 frequency set to 38fps can be.

Name Layer 1 as photo, import the externally prepared picture into the stage, and then press F8 to change to the original, type is the movie clip,

Then drag to the stage, open the Properties panel and set the following:

Then create a new layer, draw a text button, and turn it into a button component:

Put the button on the stage and set it as follows:

Then create a layer, and we put the following code in the 幁 of the layer:

[Code]import fl.transitions.*;

Import fl.transitions.easing.*;

Mybutton.addeventlistener (Mouseevent.click, blindsmyobject);

function Blindsmyobject (event:mouseevent) {

Transitionmanager.start (Photo, {type:blinds, Direction:Transition.IN, Duration:2, Easing:None.easeNone, StartPoint : 1});

}

The above is the flash AS3 simple to make the shutter effect tutorial, hope you like!

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.