HE New Year! Colorful fireworks animation production
Fireworks produced a lot of description to see the post, and not satisfied with their results, the New Year, your trying to do with FLASH MX had a firework, you have to look at the results were OK, they continue to watch and help the top, is there any Department welcomed the error correction. Looked ineffective, it quickly closed.
Preview the final result:
Click to download the source files (zip compressed file, 59K)
Production objectives are: Where is the mouse click, where fireworks bloom. Consecutive hits, also bloom in different colors of fireworks
Approach outlined below, the paper names use the source file name, some general description of the operation is omitted.
I. Preparation:
Fireworks basic components: the naming of this paragraph, just to identify convenient and can be any name. The practice of the basic components of fireworks, but also just a reference to the practice, is completely free to play, because the public the source file, describes a general approach that only.
1, the new graphic elements of a painting of a red graphics, you can draw a circle first, then use the arrow tool to back stretch. Figure 1. Named as the basic components (Figure 1)
Figure 1
2, and then build a new graphic element, draw a gray graphics, shown in Figure 2, named for the smoke. Select “smoke” graphic, open the Color mixer, select “linear” adjustment “smoke” in front of the transparency (Alpha) in 50%, 10% of the back-end transparency. (Figure 2)
Figure 2
3, create a movie clip component (MC), named for the pyrotechnic device, built two layers, the top is the fireworks, the following is the smoke. On top production, respectively 2 2 graphical elements drawn into the layers, put the left horizontal component + Office Department, in Figure 3, and insert the key in the first 10 frames. And then processed. In order to facilitate see Figure 3 do change the color of smoke.
(1) select the layer first 10 fireworks fireworks graphics, using the keyboard arrow keys to move it forward to the rod 100, then any deformation tool, or modify the properties “width” of the data and so on, to the original Long graphics change to the shape of a dot in between 1-10 frames “action” change. In order to increase these results, copy the first 10 frames, frame replication to 11,13 to change the color of white dots.
(2) select the first one tobacco smoke layer graphics, using the above method to make it shorter, the first 10 selected tobacco smoke layer graphics, use the keyboard arrow keys to move it forward, graphical front-end followed by fireworks dots in between 1-10 frames “action” change. In order to increase these results, insert the key in the 13 frames, the transparency (Alpha) adjusted to 30%, 10-13 frames in between “action” change. (Figure 3)
Figure 3
4, create a new key components, the former three blank, no processing, in the first four reaction zone (click), draw a rectangle with any color, size, works with flash, like the size. Is an empty button.
5, according to their preferences, to prepare background image, text.
2, AS part of the
1, create a new MC, named “fireworks”, in which layer 2 is when the fireworks sound effects, not described.
Layer 1 frame is a frame by frame animation 1,2, red color line up time fireworks show traces of red line is vertical, aligned component interface + Office, Figure 4 is the first two of the screenshots.
Figure 4
The preparatory work produced pyrotechnic devices 3 Drag Layer 1 to 3, pyrotechnic devices + align interface “fireworks” component of the +, select the scene dragged into the pyrotechnic device, the attribute name to the MC to fire (this name can not be wrong to be with the following in the same AS), and then inserted in the 15 common frames (frames with drawn into the same pyrotechnic devices).
Select the layer 1 of 3, write the following frame actions, you can choose expert mode, copied, pasted, AS is the role of the circular distribution of fireworks components by randomly copying 100 the following, we obtained a beautiful fireworks:
for (i = 1; i <100; i + +) (
duplicateMovieClip (”fire”, “fire” add i, i);
setProperty (”fire” add i, _rotation, random (360));
setProperty (”fire” add i, _xscale, random (100));
setProperty (”fire” add i, _yscale, random (100));
)
In the first 16 to insert a blank keyframe, select the frame, write the following frame movement, the role is to remove the copy of the entire fireworks device myMC1 and stop.
stop ();
removeMovieClip (myMC1);
2, making some scenes
Scene shown in Figure 5, the three layers, 4. (Figure 5)
Figure 5
(1) Background layer into the prepared background image, text.
(2) In the “Keys” layer the first one to write the following frame actions:
var i = 0;
In the “Keys” layer into the first two key frames, write the following frame movement to play to two stops.
stop ();
In the “Keys” layer first two drawn into making a good air button, air drag stage, showing the green button to adjust to just cover the stage, and then inserted in the first four general frame.
Select button, write down the following key action, is to click a button when the mouse when the mouse click position to achieve X, Y coordinates for the replication of fireworks components from the new name myMC1, and play to three.
on (release) (
x = _xmouse;
y = _ymouse;
var myMC1 = “myMC” add i;
gotoAndPlay (3);
)
(3) In the “Layers” section 3 insert key frame, drag the above production of “fireworks” MC, in the first four and then insert the key frame.
In the “layer” at three selected drag the “fireworks” MC (not convenient to lock and then select the first button layer MC), the property named myMC, this name must be named with AS in the same can not be wrong.
Select the “layer” at three, write the following frame movement, the role of replication “fireworks” MC, and its coordinate position consistent with the mouse clicks Department. Where to mouse clicks, where fireworks bloom in the goal.
i = i +1;
_root.myMC.duplicateMovieClip (myMC1, 100 + i);
setProperty (myMC1, _x, x);
setProperty (myMC1, _y, y);
Select the “Layers” section four, write the following frame movement, the role is to return to the first two and stop to start again.
gotoAndStop (2);
(4) in the “layer” the first three selected drag the “fireworks” MC (not convenient to lock and then select the first button layer MC), write the following video clip action, is to press the mouse Time to “fireworks” MC random changes in color. Achieve continuous hits, while fireworks bloom in different colors goal.
onClipEvent (mouseDown) (
this.c = new Color (this);
this.c.setRGB (random (0xFFFFFF));
)
Production, the above mentioned frame action, key action, movie clip action no mistake, you can have a look at the name of the action panel, and then open the write AS.
Problems in the fireworks components and cast in the two to use copy, and sometimes a little slow response. We look to master instructions, be improved.
Recommended links:
A Large Number Of International Giants Fight Back To The Chinese. CN Domain Names
How far FROM the focus to the expertise?
Fireworks 4.0 Zhezhao Daquan —- second class to create a bitmap Zhe Zhao
How to identify real and can automatically create index index
Huang Ching-agents accused of switching CPU is not placed on file
Save Delphi: Chinese open source community an excellent opportunity to display strength
Why is Facebook worth 10 billion U.S. dollars
ASE15 trained for several years With great concentration “six pulse Sword”
