Effect Demo:
Example description
colorful stars from the sky, this animation has a festive atmosphere, animation size of less than 5 K, can be created to change the effect of thousands, fully embodies the powerful function of the script statement. Create a movie document
1. Execute the "file" | "new" command, select the "General" | "Flash document" option in the pop-up dialog box, set the background to lavender, and click OK.
2. Perform the Insert | new Symbol command to create a new movie clip. Name: Star.
3. In the animation segment of the Star Edit window layer one of the first frame, draw a star graphics.
4. Next, press the F6 key at frame 20th to insert a keyframe, select the star shape of the frame, make the appropriate deformation, and modify the transparency to 0%.
5. Create a motion tween between the first frame and the 20th frame.
6. Next, create a new layer two in the Timeline window, and draw a circle at the first frame of the layer (next to the stars).
7. Select the 15th frame of Layer Two, press the F6 key to insert the keyframe, then select the first frame of the circle, reduce it, and change the transparency to 0%.
8. Return to the main scene of the editing window, open the Library panel to drag the star graph to the first frame of layer one, in the property bar to set the instance name: MC. In the third frame, press F5 to insert the normal frame.
9. Create a new layer two on the timeline and write a script statement.
First frame:
Tate = 0;
Loopvar = 0;
Second frame:
Duplicatemovieclip ("MC", "MC" Add Loopvar, Loopvar);
Removemovieclip (MC Add (LOOPVAR-15));
SetProperty ("MC", _rotation, Tate);
SetProperty ("MC", _yscale, Random (400)-200);
SetProperty ("MC", _xscale, Random (400)-200);
SetProperty ("MC", _x, Random (400));
SetProperty ("MC", _y, Random (400));
Tate = tate+10;
Loopvar = loopvar+1;
MyCol = new Color (MC);
Mycol.settransform ({rb:random (255), Gb:random (255), Bb:random (255), Aa:random (100)});
Third frame:
gotoAndPlay (2);
OK.. Look at the effect of "fairy scattered Flowers".