Flash quick flash effect

Source: Internet
Author: User

Step 1: Create a new flash file, write a few words at will in the scene, then scatter the text, right-click the font and select it to convert it to a graphic, name text, create a new clip textmov and drag text to the clip textmov.

Step 2: create a video clip textcolor and place textmov into the original textcolor. On the timeline, only the color-switching animation is used, that is, the color in the attribute panel> the color.

 

Step 3: create a video clip textok, place the original textcolor of the color gradient animation into the textok, change its instance name to "text0", and add a new layer, insert four key frames.

 

Enter the following code for the first key frame:

Maxlight = "60 ";
Dxstep = "0.05 ";
Dx = "0.7 ";
SetProperty ("li0", _ visible, "0 ");


Second key frame input:

I = "1 ";
While (Number (I) <= Number (maxlight )){
DuplicateMovieClip ("li0", "li" + I, I );
SetProperty ("li" + I, _ xscale, getProperty ("li" + (i-1), _ xscale) + I * 0.3 );
SetProperty ("li" + I, _ yscale, getProperty ("li" + (i-1), _ yscale) + I * 0.3 );
SetProperty ("li" + I, _ alpha, 10-i * (10/50 ));
SetProperty ("li" + I, _ x, getProperty ("li" + (i-1), _ x) + I * dx );
I = Number (I) + 1;
}


Third key frame input:

Dx = dx-dxstep;
If (Number (dx)> 0.7 or Number (dx) <Number (-0.7 )){
Dxstep =-dxstep;
}
I = 1;
While (Number (I) <= Number (maxlight )){
SetProperty ("li" + I, _ x, getProperty ("li" + (i-1), _ x) + I * dx );
SetProperty ("li" + I, _ y, getProperty ("li" + (i-1), _ y) + I * dx/20 );
I = Number (I) + 1;
}


Fourth frame input:

GotoAndPlay (3 );
 


Step 4: return to the home scene, drag the textok to the center of the main scene, click the original in the home scene, and enter the code in the action panel to make the best picture.

OnClipEvent (load ){
ToggleHighQuality ();
}
 


Finally, test the effect of the video...

 

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.