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...