Tweenlite filter instructions

Source: Internet
Author: User

Tweenlite has a milestone role in Flash Animation. Previously, I always felt that I used flash.CodeHow painful it is to control the animation. After using tweenlite, everything is so simple, just like jquery in JS. Let's talk less about it. Based on my recent use of tweenlite, I feel familiar with filters. I 'd like to give a brief description and try the effects of various filters for reference after I forget them.

1. autoalphaplugin (alpha Control)

Function: controls the visible attribute of the image when the Alpha control is executed. When the alpha of an object approaches 0, visible is set to false, and vice versa.

Sample Code:

Tweenplugin. Activate ([autoalphaplugin]);
Tweenlite. To (MC, 1, {autoalpha: 0 });

During the trial, we found that some filters are not used in the current version and autoalpha can achieve the same effect.

 

2. bevelfilterplugin (embossed effect)

Function: Add a relief effect to the Display object.

Parameters:

-distance: Number [0] relief offset distance
-angle: Number [0] relief offset angle
-highlightcolor: uint [0 xffffff] highlight part color
-highlightalpha: Number [0.5] highlight part transparency value
-shadowcolor: uint [0x000000] shadow color
-shadowalpha: Number [0.5] shadow transparency value
-blurx: number [2] X-direction relief depth
-blury: Number [2] Y-direction relief depth
-strength: Number [0] softness, A greater value is required.
-quality: uint [2] indicates the generation quality. The default value is
-index: uint
-addfilter: boolean [false]
-Remove: Boolean [false]

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.